Skip to content

Commit 4a5f923

Browse files
authored
Update test/tests-commonjs.js
1 parent 2a5378c commit 4a5f923

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

test/tests-commonjs.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,5 +87,3 @@ test("return {} / 2", {
8787

8888
// Illegal return statement with commonjs
8989
testFail(`class X { static { return; } }`, "'return' outside of function (1:19)", {ecmaVersion: 13, sourceType: "commonjs"});
90-
// with allowReturnOutsideFunction option
91-
test(`class X { static { return; } }`, {}, {allowReturnOutsideFunction: true, ecmaVersion: 13, sourceType: "commonjs"});

0 commit comments

Comments
 (0)