{"action":"opened","issue":{"url":"https://api.github.com/repos/mljs/savitzky-golay/issues/13","labels_url":"https://api.github.com/repos/mljs/savitzky-golay/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/mljs/savitzky-golay/issues/13/comments","events_url":"https://api.github.com/repos/mljs/savitzky-golay/issues/13/events","html_url":"https://github.com/mljs/savitzky-golay/issues/13","id":109319609,"number":13,"title":"crash when polynomial option is smaller than derivative","user":{"login":"lpatiny","id":1484241,"avatar_url":"https://avatars.githubusercontent.com/u/1484241?v=3","gravatar_id":"","url":"https://api.github.com/users/lpatiny","html_url":"https://github.com/lpatiny","followers_url":"https://api.github.com/users/lpatiny/followers","following_url":"https://api.github.com/users/lpatiny/following{/other_user}","gists_url":"https://api.github.com/users/lpatiny/gists{/gist_id}","starred_url":"https://api.github.com/users/lpatiny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lpatiny/subscriptions","organizations_url":"https://api.github.com/users/lpatiny/orgs","repos_url":"https://api.github.com/users/lpatiny/repos","events_url":"https://api.github.com/users/lpatiny/events{/privacy}","received_events_url":"https://api.github.com/users/lpatiny/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-01T15:08:22Z","updated_at":"2015-10-01T15:08:22Z","closed_at":null,"body":"https://github.com/mljs/savitzky-golay/blob/master/src/index.js#L62\r\n\r\nWhat should be done:\r\n- throw a range error before ?\r\n- automatically correct the options ?"}}