sync tests with upstream acorn

This commit is contained in:
Sebastian McKenzie 2015-07-14 15:15:36 +01:00
parent d73938ee89
commit be09f12e42

View File

@ -20869,6 +20869,14 @@ test("(function(){ return x * y })", {
}
});
// Test that innocuous string that evaluates to `use strict` is not promoted to
// Use Strict directive.
test("'use\\x20strict'; with (x) foo = bar;", {});
// Test that innocuous string that evaluates to `use strict` is not promoted to
// Use Strict directive.
test('"use\\x20strict"; with (x) foo = bar;', {});
test("with (x) foo = bar", {
type: "Program",
body: [