rust-js / rjs

Rust JavaScript interpreter
98 stars 6 forks source link

Invalid strict declaration throws a syntax error instead of a specific error #53

Open pvginkel opened 9 years ago

pvginkel commented 9 years ago

There are a number of tests that apply to the "use strict" directive. The specs state that a SyntaxError should be thrown. However, the tests test for a specific error. This behavior is the same as the behavior of Google Chrome and Firefox.

It must be verified whether it's OK that these tests are suppressed. They are specified in the test262-ignore.json file with a reference to this issue.