mirror of https://github.com/tc39/test262.git
Remove manual tests for 'yield' in generators
This commit is contained in:
parent
36a8672ae6
commit
490b2dc461
|
@ -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;
|
||||
};
|
|
@ -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;
|
||||
};
|
|
@ -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;
|
||||
}
|
||||
};
|
|
@ -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;
|
||||
}
|
||||
};
|
|
@ -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;
|
||||
}
|
||||
}
|
|
@ -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;
|
||||
}
|
||||
}
|
|
@ -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);
|
|
@ -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;
|
||||
}
|
Loading…
Reference in New Issue