| 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 6697 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6708 "[...rest,]", | 6708 "[...rest,]", |
| 6709 "[a,b,...rest,]", | 6709 "[a,b,...rest,]", |
| 6710 "[a,,...rest,]", | 6710 "[a,,...rest,]", |
| 6711 "[...rest,...rest1]", | 6711 "[...rest,...rest1]", |
| 6712 "[a,b,...rest,...rest1]", | 6712 "[a,b,...rest,...rest1]", |
| 6713 "[a,,..rest,...rest1]", | 6713 "[a,,..rest,...rest1]", |
| 6714 "{ x : 3 }", | 6714 "{ x : 3 }", |
| 6715 "{ x : 'foo' }", | 6715 "{ x : 'foo' }", |
| 6716 "{ x : /foo/ }", | 6716 "{ x : /foo/ }", |
| 6717 "{ x : `foo` }", | 6717 "{ x : `foo` }", |
| 6718 "{ get a() {} }", |
| 6719 "{ set a() {} }", |
| 6720 "{ method() {} }", |
| 6721 "{ *method() {} }", |
| 6718 NULL}; | 6722 NULL}; |
| 6719 // clang-format on | 6723 // clang-format on |
| 6720 RunParserSyncTest(context_data, data, kError, NULL, 0, always_flags, | 6724 RunParserSyncTest(context_data, data, kError, NULL, 0, always_flags, |
| 6721 arraysize(always_flags)); | 6725 arraysize(always_flags)); |
| 6722 } | 6726 } |
| 6723 | 6727 |
| 6724 { // All modes. | 6728 { // All modes. |
| 6725 const char* context_data[][2] = {{"'use strict'; let ", " = {};"}, | 6729 const char* context_data[][2] = {{"'use strict'; let ", " = {};"}, |
| 6726 {"var ", " = {};"}, | 6730 {"var ", " = {};"}, |
| 6727 {"'use strict'; const ", " = {};"}, | 6731 {"'use strict'; const ", " = {};"}, |
| (...skipping 751 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7479 "var publ\\u0069c = 1;", | 7483 "var publ\\u0069c = 1;", |
| 7480 "var { publ\\u0069c } = {};", | 7484 "var { publ\\u0069c } = {};", |
| 7481 NULL}; | 7485 NULL}; |
| 7482 RunParserSyncTest(sloppy_context_data, valid_data, kSuccess, NULL, 0, | 7486 RunParserSyncTest(sloppy_context_data, valid_data, kSuccess, NULL, 0, |
| 7483 always_flags, arraysize(always_flags)); | 7487 always_flags, arraysize(always_flags)); |
| 7484 RunParserSyncTest(strict_context_data, valid_data, kError, NULL, 0, | 7488 RunParserSyncTest(strict_context_data, valid_data, kError, NULL, 0, |
| 7485 always_flags, arraysize(always_flags)); | 7489 always_flags, arraysize(always_flags)); |
| 7486 RunModuleParserSyncTest(strict_context_data, valid_data, kError, NULL, 0, | 7490 RunModuleParserSyncTest(strict_context_data, valid_data, kError, NULL, 0, |
| 7487 always_flags, arraysize(always_flags)); | 7491 always_flags, arraysize(always_flags)); |
| 7488 } | 7492 } |
| OLD | NEW |