Skip to content
Snippets Groups Projects
Commit b35b39c4 authored by Gorkem Yakin's avatar Gorkem Yakin
Browse files

Merge branch 'bocoup/module-code'

parents a5e8ac18 82abd59f
No related branches found
No related tags found
No related merge requests found
Showing
with 140 additions and 0 deletions
// Copyright (C) 2016 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
description: Expression cannot contain an `import` declaration
id: sec-modules
negative: SyntaxError
flags: [module]
---*/
({ m() { import v from './decl-pos-import-object-method.js'; } });
// Copyright (C) 2016 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
description: Expression cannot contain an `import` declaration
id: sec-modules
negative: SyntaxError
flags: [module]
---*/
({ set m(x) { import v from './decl-pos-import-object-setter.js'; } });
// Copyright (C) 2016 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
description: Statement cannot contain an `import` declaration
id: sec-modules
negative: SyntaxError
flags: [module]
---*/
switch(0) { case 1: import v from './decl-pos-import-switch-case-dflt.js'; default: }
// Copyright (C) 2016 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
description: Statement cannot contain an `import` declaration
id: sec-modules
negative: SyntaxError
flags: [module]
---*/
switch(0) { case 1: import v from './decl-pos-import-switch-case.js'; }
// Copyright (C) 2016 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
description: Statement cannot contain an `import` declaration
id: sec-modules
negative: SyntaxError
flags: [module]
---*/
switch(0) { default: import v from './decl-pos-import-switch-dftl.js'; }
// Copyright (C) 2016 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
description: Statement cannot contain an `import` declaration
id: sec-modules
negative: SyntaxError
flags: [module]
---*/
try { } catch (err) { } finally {
import v from './decl-pos-import-try-catch-finally.js';
}
// Copyright (C) 2016 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
description: Statement cannot contain an `import` declaration
id: sec-modules
negative: SyntaxError
flags: [module]
---*/
try { } catch (err) {
import v from './decl-pos-import-try-catch.js';
}
// Copyright (C) 2016 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
description: Statement cannot contain an `import` declaration
id: sec-modules
negative: SyntaxError
flags: [module]
---*/
try { } finally {
import v from './decl-pos-import-try-finally.js';
}
// Copyright (C) 2016 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
description: Statement cannot contain an `import` declaration
id: sec-modules
negative: SyntaxError
flags: [module]
---*/
try {
import v from './decl-pos-import-try-try.js';
} catch (err) { }
// Copyright (C) 2016 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
description: Statement cannot contain an `import` declaration
id: sec-modules
negative: SyntaxError
flags: [module]
---*/
while (false) import v from './decl-pos-import-while.js';
// Copyright (C) 2016 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
description: Module code is always strict mode code.
es6id: 10.2.1
id: sec-strict-mode-code
flags: [module]
negative: SyntaxError
---*/
$ERROR('This statement should not be executed.');
var public;
// Copyright (C) 2016 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
id: sec-reserved-words
es6id: 11.6.2
description: The `await` token is not permitted as an identifier in module code
flags: [module]
negative: SyntaxError
---*/
var await;
// Copyright (C) 2016 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
id: sec-reserved-words
es6id: 11.6.2
description: The `await` token is permitted as an identifier in script code
---*/
var await;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment