diff --git a/test/language/expressions/dynamic-import/syntax/invalid/nested-with-expression-assignment-expr-not-optional.js b/test/language/expressions/dynamic-import/syntax/invalid/nested-with-expression-assignment-expr-not-optional.js index cde599b8cc..3030cffba0 100644 --- a/test/language/expressions/dynamic-import/syntax/invalid/nested-with-expression-assignment-expr-not-optional.js +++ b/test/language/expressions/dynamic-import/syntax/invalid/nested-with-expression-assignment-expr-not-optional.js @@ -28,7 +28,7 @@ info: | import( AssignmentExpression[+In, ?Yield] ) ---*/ -throw "Test262: This statement should not be evaluated."; +$DONOTEVALUATE(); with (import()) {} diff --git a/test/language/expressions/dynamic-import/syntax/invalid/nested-with-expression-no-new-call-expression.js b/test/language/expressions/dynamic-import/syntax/invalid/nested-with-expression-no-new-call-expression.js index a9e3f0d23c..f2f9bf5647 100644 --- a/test/language/expressions/dynamic-import/syntax/invalid/nested-with-expression-no-new-call-expression.js +++ b/test/language/expressions/dynamic-import/syntax/invalid/nested-with-expression-no-new-call-expression.js @@ -31,6 +31,6 @@ info: | import( AssignmentExpression[+In, ?Yield] ) ---*/ -throw "Test262: This statement should not be evaluated."; +$DONOTEVALUATE(); with (new import('')) {} diff --git a/test/language/expressions/dynamic-import/syntax/invalid/nested-with-expression-no-rest-param.js b/test/language/expressions/dynamic-import/syntax/invalid/nested-with-expression-no-rest-param.js index 472dd8d524..bb705a7448 100644 --- a/test/language/expressions/dynamic-import/syntax/invalid/nested-with-expression-no-rest-param.js +++ b/test/language/expressions/dynamic-import/syntax/invalid/nested-with-expression-no-rest-param.js @@ -36,6 +36,6 @@ info: | ... AssignmentExpression ---*/ -throw "Test262: This statement should not be evaluated."; +$DONOTEVALUATE(); with (import(...[''])) {} diff --git a/test/language/expressions/dynamic-import/syntax/invalid/nested-with-expression-not-extensible-args.js b/test/language/expressions/dynamic-import/syntax/invalid/nested-with-expression-not-extensible-args.js index fa2af814d8..2946221073 100644 --- a/test/language/expressions/dynamic-import/syntax/invalid/nested-with-expression-not-extensible-args.js +++ b/test/language/expressions/dynamic-import/syntax/invalid/nested-with-expression-not-extensible-args.js @@ -32,6 +32,6 @@ info: | - ImportCall must not be extended. ---*/ -throw "Test262: This statement should not be evaluated."; +$DONOTEVALUATE(); with (import('', '')) {} diff --git a/test/language/expressions/dynamic-import/syntax/invalid/nested-with-expression-not-extensible-no-trailing-comma.js b/test/language/expressions/dynamic-import/syntax/invalid/nested-with-expression-not-extensible-no-trailing-comma.js index 1946f361e4..b8c91dcd59 100644 --- a/test/language/expressions/dynamic-import/syntax/invalid/nested-with-expression-not-extensible-no-trailing-comma.js +++ b/test/language/expressions/dynamic-import/syntax/invalid/nested-with-expression-not-extensible-no-trailing-comma.js @@ -32,6 +32,6 @@ info: | - ImportCall must not be extended. ---*/ -throw "Test262: This statement should not be evaluated."; +$DONOTEVALUATE(); with (import('',)) {}