Remove manual tests for 'yield' in generators

This commit is contained in:
André Bargull 2017-05-02 12:09:32 -07:00
parent 36a8672ae6
commit 490b2dc461
8 changed files with 0 additions and 145 deletions

View File

@ -1,16 +0,0 @@
// Copyright (C) 2013 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
description: >
`yield` is a reserved keyword within generator function bodies and may
not be used as a binding identifier.
es6id: 12.1.1
negative:
phase: early
type: SyntaxError
---*/
var g = function*() {
yield = 1;
};

View File

@ -1,16 +0,0 @@
// Copyright (C) 2013 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
description: >
`yield` is a reserved keyword within generator function bodies and may
not be used as a label.
es6id: 12.1.1
negative:
phase: early
type: SyntaxError
---*/
var g = function*() {
yield: 1;
};

View File

@ -1,19 +0,0 @@
// Copyright (C) 2013 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
description: >
`yield` is a reserved keyword within generator function bodies and may
not be used as a binding identifier.
features: [generators]
es6id: 12.1.1
negative:
phase: early
type: SyntaxError
---*/
var obj = {
*g() {
yield = 1;
}
};

View File

@ -1,19 +0,0 @@
// Copyright (C) 2013 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
description: >
`yield` is a reserved keyword within generator function bodies and may
not be used as a label.
features: [generators]
es6id: 12.1.1
negative:
phase: early
type: SyntaxError
---*/
var obj = {
*g() {
yield: 1;
}
};

View File

@ -1,19 +0,0 @@
// Copyright (C) 2013 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
description: >
`yield` is a reserved keyword within generator function bodies and may
not be used as a binding identifier.
features: [generators]
es6id: 12.1.1
negative:
phase: early
type: SyntaxError
---*/
class A {
*g() {
yield = 1;
}
}

View File

@ -1,19 +0,0 @@
// Copyright (C) 2013 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
description: >
`yield` is a reserved keyword within generator function bodies and may
not be used as a label.
features: [generators]
es6id: 12.1.1
negative:
phase: early
type: SyntaxError
---*/
class A {
*g() {
yield: 1;
}
}

View File

@ -1,21 +0,0 @@
// Copyright (C) 2013 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
description: >
`yield` is a reserved keyword within generator function bodies and may
not be used as a binding identifier.
es6id: 12.1.1
negative:
phase: early
type: SyntaxError
---*/
var result;
function* g() {
yield = 1;
}
result = g().next();
assert.sameValue(result.value, undefined);
assert.sameValue(result.done, true);

View File

@ -1,16 +0,0 @@
// Copyright (C) 2013 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
description: >
`yield` is a reserved keyword within generator function bodies and may
not be used as a label.
es6id: 12.1.1
negative:
phase: early
type: SyntaxError
---*/
function* g() {
yield: 1;
}