| 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 5192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |