Skip to content
Snippets Groups Projects
Commit 44c65fd0 authored by Rick Waldron's avatar Rick Waldron
Browse files

Import tests from Google V8 (Block Scope Additions)

These tests are derived from the following files within the Google V8 project:

    test/mjsunit/es6/regress/regress-2506.js
    test/mjsunit/es6/regress/regress-3426.js
    test/mjsunit/es6/regress/regress-3683.js
parent 506f9fe8
Branches
No related tags found
No related merge requests found
Showing
with 33 additions and 3 deletions
......@@ -5,7 +5,6 @@ es6id: 13.1
description: >
Mixed values in iteration
---*/
"use strict";
function fn(x) {
let a = [];
for (let p in x) {
......
// Copyright (C) 2014 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 13.1
description: >
Redeclaration error within strict mode function inside non-strict code.
negative: SyntaxError
flags: [noStrict]
---*/
(function() { 'use strict'; { const f = 1; var f; } })
// Copyright (C) 2015 Rick Waldron. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 13.1
es6id: 13.6.3.7_S5.a.i
description: >
const: invalid assignment in next expression
negative: TypeError
---*/
for (const i = 0; i < 1; i++) { }
for (const i = 0; i < 1; i++) {}
// Copyright (C) 2011 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 13.6.4.10_S1.a.i
description: >
const: invalid assignment in Statement body
negative: TypeError
---*/
for (const x in [1, 2, 3]) { x++ }
// Copyright (C) 2011 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 13.6.4.10_S1.a.i
description: >
const: invalid assignment in Statement body
negative: TypeError
---*/
for (const x of [1, 2, 3]) { x++ }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment