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

Side by Side Diff: test/cctest/test-parsing.cc

Issue 918373002: Strip Interface class of most of its logic, make it all about Module exports (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Properly freeze interface at the end of ParseModule Created 5 years, 10 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 unified diff | Download patch
« no previous file with comments | « src/x87/full-codegen-x87.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 5192 matching lines...) Expand 10 before | Expand all | Expand 10 after
5203 "export default let x = 7;", 5203 "export default let x = 7;",
5204 "export default const x = 7;", 5204 "export default const x = 7;",
5205 "export *;", 5205 "export *;",
5206 "export * from;", 5206 "export * from;",
5207 "export { Q } from;", 5207 "export { Q } from;",
5208 "export default from 'module.js';", 5208 "export default from 'module.js';",
5209 "export { for }", 5209 "export { for }",
5210 "export { for as foo }", 5210 "export { for as foo }",
5211 "export { arguments }", 5211 "export { arguments }",
5212 "export { arguments as foo }", 5212 "export { arguments as foo }",
5213 "var a; export { a, a };",
5213 5214
5214 "import from;", 5215 "import from;",
5215 "import from 'm.js';", 5216 "import from 'm.js';",
5216 "import { };", 5217 "import { };",
5217 "import {;", 5218 "import {;",
5218 "import };", 5219 "import };",
5219 "import { , };", 5220 "import { , };",
5220 "import { , } from 'm.js';", 5221 "import { , } from 'm.js';",
5221 "import { a } from;", 5222 "import { a } from;",
5222 "import { a } 'm.js';", 5223 "import { a } 'm.js';",
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after
5540 static const ParserFlag always_flags[] = { 5541 static const ParserFlag always_flags[] = {
5541 kAllowStrongMode, kAllowHarmonyScoping 5542 kAllowStrongMode, kAllowHarmonyScoping
5542 }; 5543 };
5543 RunParserSyncTest(sloppy_context_data, data, kSuccess, NULL, 0, always_flags, 5544 RunParserSyncTest(sloppy_context_data, data, kSuccess, NULL, 0, always_flags,
5544 arraysize(always_flags)); 5545 arraysize(always_flags));
5545 RunParserSyncTest(strict_context_data, data, kSuccess, NULL, 0, always_flags, 5546 RunParserSyncTest(strict_context_data, data, kSuccess, NULL, 0, always_flags,
5546 arraysize(always_flags)); 5547 arraysize(always_flags));
5547 RunParserSyncTest(strong_context_data, data, kError, NULL, 0, always_flags, 5548 RunParserSyncTest(strong_context_data, data, kError, NULL, 0, always_flags,
5548 arraysize(always_flags)); 5549 arraysize(always_flags));
5549 } 5550 }
OLDNEW
« no previous file with comments | « src/x87/full-codegen-x87.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698