Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1329)

Unified Diff: test/mjsunit/harmony/typesystem/variable-declarations.js

Issue 1871923003: Add parsing for ambient declarations (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@types-devel
Patch Set: Minor fixes to address code review comments Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: test/mjsunit/harmony/typesystem/variable-declarations.js
diff --git a/test/mjsunit/harmony/typesystem/variable-declarations.js b/test/mjsunit/harmony/typesystem/variable-declarations.js
index 50214804ed32ee2abde2f8bbcae17a78721ba609..f242255bb262e6dd2af4bcbf0b5a170f4d6e4744 100644
--- a/test/mjsunit/harmony/typesystem/variable-declarations.js
+++ b/test/mjsunit/harmony/typesystem/variable-declarations.js
@@ -51,13 +51,9 @@ function InvalidVariableDeclarations(size, keyword="var") {
keyword != "const" && (t => keyword + " {a: x, b: y} : " + t + ";"),
t => keyword + " {a: x, b: y} : " + t + " = {a: 17, b: 42};"
]),
- "var [x, y]: number[];",
- "var {a: x, b: y}: {a: number, b: string};",
- "let [x, y]: number[];",
- "let {a: x, b: y}: {a: number, b: string};",
- "const x: number;",
- "const [x, y]: [number, string];",
- "const {a: x, b: y}: {a: number, b: string};"
+ keyword + " [x, y]: number[];",
+ keyword + " {a: x, b: y}: {a: number, b: string};",
+ keyword == "const" && keyword + " x: number;"
]);
}
« src/parsing/preparser.cc ('K') | « test/mjsunit/harmony/typesystem/ambient-declarations.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698