Changeset 207569 in webkit
- Timestamp:
- Oct 19, 2016 2:27:51 PM (8 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JSTests/ChangeLog
r207518 r207569 1 2016-10-19 Caitlin Potter <caitp@igalia.com> 2 3 [JSC] forbid "use strict" directive in generator functions with non-simple parameters 4 https://bugs.webkit.org/show_bug.cgi?id=163683 5 6 Reviewed by Geoffrey Garen. 7 8 Update various generator*-non-simple-param.js tests to be passing. 9 10 * test262.yaml: 11 1 12 2016-10-18 Mark Lam <mark.lam@apple.com> 2 13 -
trunk/JSTests/test262.yaml
r207461 r207569 63089 63089 cmd: runTest262 :normal, "NoException", ["../../../../harness/assert.js", "../../../../harness/sta.js"], [:strict] 63090 63090 - path: test262/test/language/expressions/generators/use-strict-with-non-simple-param.js 63091 cmd: runTest262 : fail, "SyntaxError", ["../../../../harness/assert.js", "../../../../harness/sta.js"], []63091 cmd: runTest262 :normal, "SyntaxError", ["../../../../harness/assert.js", "../../../../harness/sta.js"], [] 63092 63092 - path: test262/test/language/expressions/generators/use-strict-with-non-simple-param.js 63093 cmd: runTest262 : fail, "SyntaxError", ["../../../../harness/assert.js", "../../../../harness/sta.js"], [:strict]63093 cmd: runTest262 :normal, "SyntaxError", ["../../../../harness/assert.js", "../../../../harness/sta.js"], [:strict] 63094 63094 - path: test262/test/language/expressions/generators/yield-as-binding-identifier.js 63095 63095 cmd: runTest262 :normal, "SyntaxError", ["../../../../harness/assert.js", "../../../../harness/sta.js"], [] … … 66551 66551 cmd: runTest262 :normal, "NoException", ["../../../../../harness/assert.js", "../../../../../harness/sta.js"], [:strict] 66552 66552 - path: test262/test/language/expressions/object/method-definition/generator-use-strict-with-non-simple-param.js 66553 cmd: runTest262 : fail, "SyntaxError", ["../../../../../harness/assert.js", "../../../../../harness/sta.js"], []66553 cmd: runTest262 :normal, "SyntaxError", ["../../../../../harness/assert.js", "../../../../../harness/sta.js"], [] 66554 66554 - path: test262/test/language/expressions/object/method-definition/generator-use-strict-with-non-simple-param.js 66555 cmd: runTest262 : fail, "SyntaxError", ["../../../../../harness/assert.js", "../../../../../harness/sta.js"], [:strict]66555 cmd: runTest262 :normal, "SyntaxError", ["../../../../../harness/assert.js", "../../../../../harness/sta.js"], [:strict] 66556 66556 - path: test262/test/language/expressions/object/method-definition/name-invoke-ctor.js 66557 66557 cmd: runTest262 :normal, "NoException", ["../../../../../harness/assert.js", "../../../../../harness/sta.js"], [] … … 84245 84245 cmd: runTest262 :normal, "NoException", ["../../../../harness/assert.js", "../../../../harness/sta.js"], [:strict] 84246 84246 - path: test262/test/language/statements/generators/use-strict-with-non-simple-param.js 84247 cmd: runTest262 : fail, "SyntaxError", ["../../../../harness/assert.js", "../../../../harness/sta.js"], []84247 cmd: runTest262 :normal, "SyntaxError", ["../../../../harness/assert.js", "../../../../harness/sta.js"], [] 84248 84248 - path: test262/test/language/statements/generators/use-strict-with-non-simple-param.js 84249 cmd: runTest262 : fail, "SyntaxError", ["../../../../harness/assert.js", "../../../../harness/sta.js"], [:strict]84249 cmd: runTest262 :normal, "SyntaxError", ["../../../../harness/assert.js", "../../../../harness/sta.js"], [:strict] 84250 84250 - path: test262/test/language/statements/generators/yield-as-binding-identifier.js 84251 84251 cmd: runTest262 :normal, "SyntaxError", ["../../../../harness/assert.js", "../../../../harness/sta.js"], [] -
trunk/Source/JavaScriptCore/ChangeLog
r207568 r207569 1 2016-10-19 Caitlin Potter <caitp@igalia.com> 2 3 [JSC] forbid "use strict" directive in generator functions with non-simple parameters 4 https://bugs.webkit.org/show_bug.cgi?id=163683 5 6 Reviewed by Geoffrey Garen. 7 8 Because generator functions and async functions both have an implicit 9 inner function whose arguments are inherited from its parent, "use strict" 10 directives within these functions did not yield a SyntaxError. 11 12 Now, the correct syntax error is reported, fixing several test262 failures 13 for generators and async functions. 14 15 * parser/Parser.cpp: 16 (JSC::Parser<LexerType>::parseFunctionInfo): 17 1 18 2016-10-19 Ryan Haddad <ryanhaddad@apple.com> 2 19 -
trunk/Source/JavaScriptCore/parser/Parser.cpp
r207312 r207569 2354 2354 generatorBodyScope->setExpectedSuperBinding(expectedSuperBinding); 2355 2355 2356 // Disallow 'use strict' directives in the implicit inner function if 2357 // needed. 2358 if (functionScope->hasNonSimpleParameterList()) 2359 generatorBodyScope->setHasNonSimpleParameterList(); 2360 2356 2361 functionInfo.body = performParsingFunctionBody(); 2357 2362
Note: See TracChangeset
for help on using the changeset viewer.