Index: test/mjsunit/es6/default-parameters.js |
diff --git a/test/mjsunit/es6/default-parameters.js b/test/mjsunit/es6/default-parameters.js |
index 4e0bf542ef5292568d7bd28f5e85ffe3554d1929..c0fe031c039b76f0c83558c45e28e55b7672bc3e 100644 |
--- a/test/mjsunit/es6/default-parameters.js |
+++ b/test/mjsunit/es6/default-parameters.js |
@@ -350,14 +350,15 @@ |
(function TestDirectiveThrows() { |
"use strict"; |
- assertThrows(function(){ eval("function(x=1){'use strict';}") }, SyntaxError); |
- assertThrows(function(){ eval("(x=1) => {'use strict';}") }, SyntaxError); |
- assertThrows( |
- function(){ eval("(class{foo(x=1) {'use strict';}});") }, SyntaxError); |
- |
- assertThrows( |
- function(){ eval("function(a, x=1){'use strict';}") }, SyntaxError); |
- assertThrows(function(){ eval("(a, x=1) => {'use strict';}") }, SyntaxError); |
- assertThrows( |
- function(){ eval("(class{foo(a, x=1) {'use strict';}});") }, SyntaxError); |
+ assertThrows("(function(x=1){'use strict';})", SyntaxError); |
+ assertThrows("(x=1) => {'use strict';}", SyntaxError); |
+ assertThrows("(class{foo(x=1) {'use strict';}});", SyntaxError); |
+ |
+ assertThrows("(function(a, x=1){'use strict';})", SyntaxError); |
+ assertThrows("(a, x=1) => {'use strict';}", SyntaxError); |
+ assertThrows("(class{foo(a, x=1) {'use strict';}});", SyntaxError); |
+ |
+ assertThrows("(function({x}){'use strict';})", SyntaxError); |
+ assertThrows("({x}) => {'use strict';}", SyntaxError); |
+ assertThrows("(class{foo({x}) {'use strict';}});", SyntaxError); |
})(); |