Index: test/mjsunit/strict-mode.js |
diff --git a/test/mjsunit/strict-mode.js b/test/mjsunit/strict-mode.js |
index 00d6847ba68f961ed17c737739bbe6ebd21f5a67..d0839ba0fbe73fb7a75413da1e2626f8824e00dd 100644 |
--- a/test/mjsunit/strict-mode.js |
+++ b/test/mjsunit/strict-mode.js |
@@ -292,7 +292,7 @@ CheckStrictMode("const x = 0;", SyntaxError); |
CheckStrictMode("for (const x = 0; false;) {}", SyntaxError); |
CheckStrictMode("function strict() { const x = 0; }", SyntaxError); |
-// Strict mode only allows functions in SourceElements |
+// Strict mode only allows functions in StatementList |
CheckStrictMode("if (true) { function invalid() {} }", SyntaxError); |
CheckStrictMode("for (;false;) { function invalid() {} }", SyntaxError); |
CheckStrictMode("{ function invalid() {} }", SyntaxError); |