OLD | NEW |
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 5089 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5100 "export default let x = 7;", | 5100 "export default let x = 7;", |
5101 "export default const x = 7;", | 5101 "export default const x = 7;", |
5102 "export *;", | 5102 "export *;", |
5103 "export * from;", | 5103 "export * from;", |
5104 "export { Q } from;", | 5104 "export { Q } from;", |
5105 "export default from 'module.js';", | 5105 "export default from 'module.js';", |
5106 "export { for }", | 5106 "export { for }", |
5107 "export { for as foo }", | 5107 "export { for as foo }", |
5108 "export { arguments }", | 5108 "export { arguments }", |
5109 "export { arguments as foo }", | 5109 "export { arguments as foo }", |
| 5110 "var a; export { a, a };", |
5110 | 5111 |
5111 "import from;", | 5112 "import from;", |
5112 "import from 'm.js';", | 5113 "import from 'm.js';", |
5113 "import { };", | 5114 "import { };", |
5114 "import {;", | 5115 "import {;", |
5115 "import };", | 5116 "import };", |
5116 "import { , };", | 5117 "import { , };", |
5117 "import { , } from 'm.js';", | 5118 "import { , } from 'm.js';", |
5118 "import { a } from;", | 5119 "import { a } from;", |
5119 "import { a } 'm.js';", | 5120 "import { a } 'm.js';", |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5319 "class C {static set arguments(_) {}}", | 5320 "class C {static set arguments(_) {}}", |
5320 | 5321 |
5321 NULL}; | 5322 NULL}; |
5322 | 5323 |
5323 static const ParserFlag always_flags[] = { | 5324 static const ParserFlag always_flags[] = { |
5324 kAllowHarmonyClasses, kAllowHarmonyObjectLiterals, kAllowHarmonyScoping, | 5325 kAllowHarmonyClasses, kAllowHarmonyObjectLiterals, kAllowHarmonyScoping, |
5325 kAllowStrongMode}; | 5326 kAllowStrongMode}; |
5326 RunParserSyncTest(context_data, statement_data, kSuccess, NULL, 0, | 5327 RunParserSyncTest(context_data, statement_data, kSuccess, NULL, 0, |
5327 always_flags, arraysize(always_flags)); | 5328 always_flags, arraysize(always_flags)); |
5328 } | 5329 } |
OLD | NEW |