mirror of
https://github.com/tc39/test262.git
synced 2025-07-28 16:34:27 +02:00
Merge pull request #1155 from rwaldron/1154
Remove selection of incorrect async iteration tests. Fixes gh-1154
This commit is contained in:
commit
a543705179
@ -1,24 +0,0 @@
|
|||||||
// Copyright (C) 2017 the V8 project authors. All rights reserved.
|
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
|
||||||
|
|
||||||
/*---
|
|
||||||
desc: >
|
|
||||||
Value retrieval of Initializer obeys `let` semantics.
|
|
||||||
template: default
|
|
||||||
es6id: 12.14.5.3
|
|
||||||
features: [let]
|
|
||||||
---*/
|
|
||||||
|
|
||||||
//- setup
|
|
||||||
let x;
|
|
||||||
//- elems
|
|
||||||
[ x = y ]
|
|
||||||
//- vals
|
|
||||||
[]
|
|
||||||
//- teardown
|
|
||||||
promise.then(() => $DONE('Promise incorrectly fulfilled.'), ({ constructor }) => {
|
|
||||||
assert.sameValue(constructor, ReferenceError);
|
|
||||||
}).then($DONE, $DONE);
|
|
||||||
|
|
||||||
let y;
|
|
||||||
|
|
@ -1,22 +0,0 @@
|
|||||||
// Copyright (C) 2017 the V8 project authors. All rights reserved.
|
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
|
||||||
|
|
||||||
/*---
|
|
||||||
desc: >
|
|
||||||
The assignment target should obey `let` semantics.
|
|
||||||
template: default
|
|
||||||
es6id: 12.14.5.3
|
|
||||||
features: [let]
|
|
||||||
---*/
|
|
||||||
|
|
||||||
//- elems
|
|
||||||
[ x ]
|
|
||||||
//- vals
|
|
||||||
[]
|
|
||||||
//- teardown
|
|
||||||
promise.then(() => $DONE('Promise incorrectly fulfilled.'), ({ constructor }) => {
|
|
||||||
assert.sameValue(iterCount, 0);
|
|
||||||
assert.sameValue(constructor, ReferenceError);
|
|
||||||
}).then($DONE, $DONE);
|
|
||||||
|
|
||||||
let x;
|
|
@ -1,63 +0,0 @@
|
|||||||
// Copyright (C) 2017 the V8 project authors. All rights reserved.
|
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
|
||||||
/*---
|
|
||||||
desc: Abrupt completion returned during evaluation of elision
|
|
||||||
info: |
|
|
||||||
ArrayAssignmentPattern :
|
|
||||||
[ AssignmentElementList , Elisionopt AssignmentRestElementopt ]
|
|
||||||
|
|
||||||
[...]
|
|
||||||
6. If Elision is present, then
|
|
||||||
a. Let status be the result of performing
|
|
||||||
IteratorDestructuringAssignmentEvaluation of Elision with
|
|
||||||
iteratorRecord as the argument.
|
|
||||||
b. If status is an abrupt completion, then
|
|
||||||
i. If iteratorRecord.[[done]] is false, return
|
|
||||||
IteratorClose(iterator, status).
|
|
||||||
ii. Return Completion(status).
|
|
||||||
features: [Symbol.iterator]
|
|
||||||
template: async-generator
|
|
||||||
es6id: 12.14.5.2
|
|
||||||
esid: sec-runtime-semantics-destructuringassignmentevaluation
|
|
||||||
---*/
|
|
||||||
|
|
||||||
//- setup
|
|
||||||
let nextCount = 0;
|
|
||||||
let returnCount = 0;
|
|
||||||
let x;
|
|
||||||
let iterator = {
|
|
||||||
next() {
|
|
||||||
nextCount += 1;
|
|
||||||
|
|
||||||
if (nextCount === 2) {
|
|
||||||
throw new Test262Error();
|
|
||||||
}
|
|
||||||
|
|
||||||
// Set an upper-bound to limit unnecessary iteration in non-conformant
|
|
||||||
// implementations
|
|
||||||
return { done: nextCount > 10 };
|
|
||||||
},
|
|
||||||
return() {
|
|
||||||
returnCount += 1;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
let iterable = {
|
|
||||||
[Symbol.iterator]() {
|
|
||||||
return iterator;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
//- elems
|
|
||||||
[ x , , ]
|
|
||||||
//- vals
|
|
||||||
iterable
|
|
||||||
//- teardown
|
|
||||||
|
|
||||||
iter.next().then(() => {
|
|
||||||
iter.next().then(() => $DONE('Promise incorrectly fulfilled.'), ({ constructor }) => {
|
|
||||||
assert.sameValue(nextCount, 2);
|
|
||||||
assert.sameValue(returnCount, 0);
|
|
||||||
assert.sameValue(constructor, Test262Error);
|
|
||||||
|
|
||||||
}).then($DONE, $DONE);
|
|
||||||
}, $DONE);
|
|
@ -1,33 +0,0 @@
|
|||||||
// Copyright (C) 2017 the V8 project authors. All rights reserved.
|
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
|
||||||
/*---
|
|
||||||
desc: Abrupt completion returned from GetIterator
|
|
||||||
info: |
|
|
||||||
ArrayAssignmentPattern :
|
|
||||||
[ AssignmentElementList , Elisionopt AssignmentRestElementopt ]
|
|
||||||
|
|
||||||
1. Let iterator be GetIterator(value).
|
|
||||||
2. ReturnIfAbrupt(iterator).
|
|
||||||
features: [Symbol.iterator]
|
|
||||||
template: async-generator
|
|
||||||
es6id: 12.14.5.2
|
|
||||||
esid: sec-runtime-semantics-destructuringassignmentevaluation
|
|
||||||
---*/
|
|
||||||
|
|
||||||
//- setup
|
|
||||||
let iterable = {
|
|
||||||
[Symbol.iterator]() {
|
|
||||||
throw new Test262Error();
|
|
||||||
}
|
|
||||||
};
|
|
||||||
let x;
|
|
||||||
//- elems
|
|
||||||
[ x , ]
|
|
||||||
//- vals
|
|
||||||
iterable
|
|
||||||
|
|
||||||
//- teardown
|
|
||||||
iter.return().then(() => $DONE('Promise incorrectly fulfilled.'), ({ constructor }) => {
|
|
||||||
assert.sameValue(iterCount, 0);
|
|
||||||
assert.sameValue(constructor, Test262Error);
|
|
||||||
}).then($DONE, $DONE);
|
|
@ -1,65 +0,0 @@
|
|||||||
// Copyright (C) 2017 the V8 project authors. All rights reserved.
|
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
|
||||||
/*---
|
|
||||||
desc: >
|
|
||||||
IteratorClose throws a TypeError when `return` returns a non-Object value
|
|
||||||
info: |
|
|
||||||
ArrayAssignmentPattern :
|
|
||||||
[ AssignmentElementList , Elisionopt AssignmentRestElementopt ]
|
|
||||||
|
|
||||||
[...]
|
|
||||||
2. Let iteratorRecord be Record {[[Iterator]]: iterator, [[Done]]: false}.
|
|
||||||
3. Let status be the result of performing
|
|
||||||
IteratorDestructuringAssignmentEvaluation of AssignmentElementList using
|
|
||||||
iteratorRecord as the argument.
|
|
||||||
4. If status is an abrupt completion, then
|
|
||||||
a. If iteratorRecord.[[Done]] is false, return ? IteratorClose(iterator, status).
|
|
||||||
b. Return Completion(status).
|
|
||||||
|
|
||||||
7.4.6 IteratorClose( iterator, completion )
|
|
||||||
|
|
||||||
[...]
|
|
||||||
5. Let innerResult be Call(return, iterator, « »).
|
|
||||||
6. If completion.[[type]] is throw, return Completion(completion).
|
|
||||||
7. If innerResult.[[type]] is throw, return Completion(innerResult).
|
|
||||||
8. If Type(innerResult.[[value]]) is not Object, throw a TypeError
|
|
||||||
exception.
|
|
||||||
|
|
||||||
features: [Symbol.iterator]
|
|
||||||
template: async-generator
|
|
||||||
es6id: 12.14.5.2
|
|
||||||
esid: sec-runtime-semantics-destructuringassignmentevaluation
|
|
||||||
---*/
|
|
||||||
|
|
||||||
//- setup
|
|
||||||
let x;
|
|
||||||
let nextCount = 0;
|
|
||||||
let iterator = {
|
|
||||||
next() {
|
|
||||||
nextCount += 1;
|
|
||||||
// Set an upper-bound to limit unnecessary iteration in non-conformant
|
|
||||||
// implementations
|
|
||||||
return { done: nextCount > 10 };
|
|
||||||
},
|
|
||||||
return() {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
let iterable = {
|
|
||||||
[Symbol.iterator]() {
|
|
||||||
return iterator;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
//- error
|
|
||||||
TypeError
|
|
||||||
//- elems
|
|
||||||
[ x , ]
|
|
||||||
//- vals
|
|
||||||
iterable
|
|
||||||
//- teardown
|
|
||||||
iter.return().then(() => $DONE('Promise incorrectly fulfilled.'), ({ constructor }) => {
|
|
||||||
assert.sameValue(iterCount, 0);
|
|
||||||
assert.sameValue(constructor, TypeError);
|
|
||||||
}).then($DONE, $DONE);
|
|
||||||
|
|
@ -1,60 +0,0 @@
|
|||||||
// Copyright (C) 2017 the V8 project authors. All rights reserved.
|
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
|
||||||
/*---
|
|
||||||
desc: >
|
|
||||||
IteratorClose is invoked when evaluation of AssignmentElementList returns
|
|
||||||
a "return" completion and the iterator has not been marked as "done"
|
|
||||||
info: |
|
|
||||||
ArrayAssignmentPattern :
|
|
||||||
[ AssignmentElementList , Elisionopt AssignmentRestElementopt ]
|
|
||||||
|
|
||||||
[...]
|
|
||||||
2. Let iteratorRecord be Record {[[Iterator]]: iterator, [[Done]]: false}.
|
|
||||||
3. Let status be the result of performing
|
|
||||||
IteratorDestructuringAssignmentEvaluation of AssignmentElementList using
|
|
||||||
iteratorRecord as the argument.
|
|
||||||
4. If status is an abrupt completion, then
|
|
||||||
a. If iteratorRecord.[[Done]] is false, return ? IteratorClose(iterator, status).
|
|
||||||
b. Return Completion(status).
|
|
||||||
|
|
||||||
7.4.6 IteratorClose( iterator, completion )
|
|
||||||
|
|
||||||
[...]
|
|
||||||
5. Let innerResult be Call(return, iterator, « »).
|
|
||||||
6. If completion.[[type]] is throw, return Completion(completion).
|
|
||||||
7. If innerResult.[[type]] is throw, return Completion(innerResult).
|
|
||||||
|
|
||||||
features: [Symbol.iterator, generators]
|
|
||||||
template: async-generator
|
|
||||||
es6id: 12.14.5.2
|
|
||||||
esid: sec-runtime-semantics-destructuringassignmentevaluation
|
|
||||||
---*/
|
|
||||||
|
|
||||||
//- setup
|
|
||||||
let returnCount = 0;
|
|
||||||
let unreachable = 0;
|
|
||||||
let iterator = {
|
|
||||||
return() {
|
|
||||||
returnCount += 1;
|
|
||||||
|
|
||||||
throw new Test262Error();
|
|
||||||
}
|
|
||||||
};
|
|
||||||
let iterable = {
|
|
||||||
[Symbol.iterator]() {
|
|
||||||
return iterator;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
//- elems
|
|
||||||
[ {}[yield] , ]
|
|
||||||
//- vals
|
|
||||||
iterable
|
|
||||||
//- body
|
|
||||||
unreachable += 1;
|
|
||||||
//- teardown
|
|
||||||
iter.return().then(() => $DONE('Promise incorrectly fulfilled.'), ({ constructor }) => {
|
|
||||||
assert.sameValue(returnCount, 1);
|
|
||||||
assert.sameValue(unreachable, 0, 'Unreachable statement was not executed');
|
|
||||||
assert.sameValue(constructor, Test262Error);
|
|
||||||
}).then($DONE, $DONE);
|
|
@ -1,55 +0,0 @@
|
|||||||
// Copyright (C) 2017 the V8 project authors. All rights reserved.
|
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
|
||||||
/*---
|
|
||||||
desc: >
|
|
||||||
IteratorClose throws a TypeError when `return` returns a non-Object value
|
|
||||||
info: |
|
|
||||||
ArrayAssignmentPattern :
|
|
||||||
[ AssignmentElementList , Elisionopt AssignmentRestElementopt ]
|
|
||||||
|
|
||||||
[...]
|
|
||||||
2. Let iteratorRecord be Record {[[Iterator]]: iterator, [[Done]]: false}.
|
|
||||||
3. Let status be the result of performing
|
|
||||||
IteratorDestructuringAssignmentEvaluation of AssignmentElementList using
|
|
||||||
iteratorRecord as the argument.
|
|
||||||
4. If status is an abrupt completion, then
|
|
||||||
a. If iteratorRecord.[[Done]] is false, return ? IteratorClose(iterator, status).
|
|
||||||
b. Return Completion(status).
|
|
||||||
|
|
||||||
7.4.6 IteratorClose( iterator, completion )
|
|
||||||
|
|
||||||
[...]
|
|
||||||
5. Let innerResult be Call(return, iterator, « »).
|
|
||||||
6. If completion.[[type]] is throw, return Completion(completion).
|
|
||||||
7. If innerResult.[[type]] is throw, return Completion(innerResult).
|
|
||||||
8. If Type(innerResult.[[value]]) is not Object, throw a TypeError
|
|
||||||
exception.
|
|
||||||
|
|
||||||
features: [Symbol.iterator, generators]
|
|
||||||
template: async-generator
|
|
||||||
es6id: 12.14.5.2
|
|
||||||
esid: sec-runtime-semantics-destructuringassignmentevaluation
|
|
||||||
---*/
|
|
||||||
|
|
||||||
//- setup
|
|
||||||
let iterator = {
|
|
||||||
return() {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
let iterable = {
|
|
||||||
[Symbol.iterator]() {
|
|
||||||
return iterator;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
//- elems
|
|
||||||
[ {}[yield] , ]
|
|
||||||
//- vals
|
|
||||||
iterable
|
|
||||||
//- teardown
|
|
||||||
iter.return().then(() => $DONE('Promise incorrectly fulfilled.'), ({ constructor }) => {
|
|
||||||
assert.sameValue(iterCount, 0);
|
|
||||||
assert.sameValue(constructor, TypeError);
|
|
||||||
}).then($DONE, $DONE);
|
|
@ -1,68 +0,0 @@
|
|||||||
// Copyright (C) 2017 the V8 project authors. All rights reserved.
|
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
|
||||||
/*---
|
|
||||||
desc: >
|
|
||||||
IteratorClose is invoked when evaluation of AssignmentElementList returns
|
|
||||||
a "return" completion and the iterator has not been marked as "done"
|
|
||||||
info: |
|
|
||||||
ArrayAssignmentPattern :
|
|
||||||
[ AssignmentElementList , Elisionopt AssignmentRestElementopt ]
|
|
||||||
|
|
||||||
[...]
|
|
||||||
2. Let iteratorRecord be Record {[[Iterator]]: iterator, [[Done]]: false}.
|
|
||||||
3. Let status be the result of performing
|
|
||||||
IteratorDestructuringAssignmentEvaluation of AssignmentElementList using
|
|
||||||
iteratorRecord as the argument.
|
|
||||||
4. If status is an abrupt completion, then
|
|
||||||
a. If iteratorRecord.[[Done]] is false, return ? IteratorClose(iterator, status).
|
|
||||||
b. Return Completion(status).
|
|
||||||
|
|
||||||
7.4.6 IteratorClose( iterator, completion )
|
|
||||||
|
|
||||||
[...]
|
|
||||||
5. Let innerResult be Call(return, iterator, « »).
|
|
||||||
6. If completion.[[type]] is throw, return Completion(completion).
|
|
||||||
7. If innerResult.[[type]] is throw, return Completion(innerResult).
|
|
||||||
|
|
||||||
features: [Symbol.iterator, generators]
|
|
||||||
template: async-generator
|
|
||||||
es6id: 12.14.5.2
|
|
||||||
esid: sec-runtime-semantics-destructuringassignmentevaluation
|
|
||||||
---*/
|
|
||||||
|
|
||||||
//- setup
|
|
||||||
let returnCount = 0;
|
|
||||||
let unreachable = 0;
|
|
||||||
let thisValue = null;
|
|
||||||
let args = null;
|
|
||||||
let iterator = {
|
|
||||||
return() {
|
|
||||||
returnCount += 1;
|
|
||||||
thisValue = this;
|
|
||||||
args = arguments;
|
|
||||||
return {};
|
|
||||||
}
|
|
||||||
};
|
|
||||||
let iterable = {
|
|
||||||
[Symbol.iterator]() {
|
|
||||||
return iterator;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
//- elems
|
|
||||||
[ {}[yield] , ]
|
|
||||||
//- vals
|
|
||||||
iterable
|
|
||||||
//- body
|
|
||||||
unreachable += 1;
|
|
||||||
//- teardown
|
|
||||||
iter.return(888).then(result => {
|
|
||||||
assert.sameValue(returnCount, 1);
|
|
||||||
assert.sameValue(unreachable, 0, 'Unreachable statement was not executed');
|
|
||||||
assert.sameValue(result.value, 888);
|
|
||||||
assert(result.done, 'Iterator correctly closed');
|
|
||||||
assert.sameValue(thisValue, iterator, 'correct `this` value');
|
|
||||||
assert(!!args, 'arguments object provided');
|
|
||||||
assert.sameValue(args.length, 0, 'zero arguments specified');
|
|
||||||
}).then($DONE, $DONE);
|
|
@ -1,69 +0,0 @@
|
|||||||
// Copyright (C) 2017 the V8 project authors. All rights reserved.
|
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
|
||||||
/*---
|
|
||||||
desc: >
|
|
||||||
IteratorClose is called when AssignmentRestEvaluation produces a "return"
|
|
||||||
completion due to reference evaluation
|
|
||||||
info: |
|
|
||||||
ArrayAssignmentPattern :
|
|
||||||
[ AssignmentElementList , Elisionopt AssignmentRestElementopt ]
|
|
||||||
|
|
||||||
[...]
|
|
||||||
6. If AssignmentRestElement is present, then
|
|
||||||
a. Let status be the result of performing
|
|
||||||
IteratorDestructuringAssignmentEvaluation of AssignmentRestElement
|
|
||||||
with iteratorRecord as the argument.
|
|
||||||
7. If iteratorRecord.[[Done]] is false, return ? IteratorClose(iterator, status).
|
|
||||||
8. Return Completion(status).
|
|
||||||
|
|
||||||
7.4.6 IteratorClose ( iterator, completion )
|
|
||||||
|
|
||||||
[...]
|
|
||||||
5. Let innerResult be Call(return, iterator, « »).
|
|
||||||
6. If completion.[[type]] is throw, return Completion(completion).
|
|
||||||
7. If innerResult.[[type]] is throw, return Completion(innerResult).
|
|
||||||
|
|
||||||
features: [Symbol.iterator, generators]
|
|
||||||
template: async-generator
|
|
||||||
es6id: 12.14.5.2
|
|
||||||
esid: sec-runtime-semantics-destructuringassignmentevaluation
|
|
||||||
---*/
|
|
||||||
|
|
||||||
//- setup
|
|
||||||
let nextCount = 0;
|
|
||||||
let returnCount = 0;
|
|
||||||
let unreachable = 0;
|
|
||||||
let x;
|
|
||||||
let iterator = {
|
|
||||||
next() {
|
|
||||||
nextCount += 1;
|
|
||||||
// Set an upper-bound to limit unnecessary iteration in non-conformant
|
|
||||||
// implementations
|
|
||||||
return { done: nextCount > 10 };
|
|
||||||
},
|
|
||||||
return() {
|
|
||||||
returnCount += 1;
|
|
||||||
|
|
||||||
throw new Test262Error();
|
|
||||||
}
|
|
||||||
};
|
|
||||||
let iterable = {
|
|
||||||
[Symbol.iterator]() {
|
|
||||||
return iterator;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
//- elems
|
|
||||||
[ x , ...{}[yield] ]
|
|
||||||
//- vals
|
|
||||||
iterable
|
|
||||||
//- body
|
|
||||||
unreachable += 1;
|
|
||||||
//- teardown
|
|
||||||
iter.next().then(() => {
|
|
||||||
iter.return().then(() => $DONE('Promise incorrectly fulfilled.'), ({ constructor }) => {
|
|
||||||
assert.sameValue(nextCount, 1);
|
|
||||||
assert.sameValue(returnCount, 1);
|
|
||||||
assert.sameValue(constructor, Test262Error);
|
|
||||||
}).then($DONE, $DONE);
|
|
||||||
}).then($DONE, $DONE);
|
|
@ -1,60 +0,0 @@
|
|||||||
// Copyright (C) 2017 the V8 project authors. All rights reserved.
|
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
|
||||||
/*---
|
|
||||||
desc: >
|
|
||||||
IteratorClose throws a TypeError when `return` returns a non-Object value
|
|
||||||
info: |
|
|
||||||
ArrayAssignmentPattern :
|
|
||||||
[ AssignmentElementList , Elisionopt AssignmentRestElementopt ]
|
|
||||||
|
|
||||||
[...]
|
|
||||||
6. If AssignmentRestElement is present, then
|
|
||||||
a. Let status be the result of performing
|
|
||||||
IteratorDestructuringAssignmentEvaluation of AssignmentRestElement
|
|
||||||
with iteratorRecord as the argument.
|
|
||||||
7. If iteratorRecord.[[Done]] is false, return ? IteratorClose(iterator, status).
|
|
||||||
8. Return Completion(status).
|
|
||||||
|
|
||||||
7.4.6 IteratorClose ( iterator, completion )
|
|
||||||
|
|
||||||
[...]
|
|
||||||
5. Let innerResult be Call(return, iterator, « »).
|
|
||||||
6. If completion.[[type]] is throw, return Completion(completion).
|
|
||||||
7. If innerResult.[[type]] is throw, return Completion(innerResult).
|
|
||||||
|
|
||||||
features: [Symbol.iterator, generators]
|
|
||||||
template: async-generator
|
|
||||||
es6id: 12.14.5.2
|
|
||||||
esid: sec-runtime-semantics-destructuringassignmentevaluation
|
|
||||||
---*/
|
|
||||||
|
|
||||||
//- setup
|
|
||||||
let nextCount = 0;
|
|
||||||
let x;
|
|
||||||
let iterator = {
|
|
||||||
next() {
|
|
||||||
nextCount += 1;
|
|
||||||
// Set an upper-bound to limit unnecessary iteration in non-conformant
|
|
||||||
// implementations
|
|
||||||
return { done: nextCount > 10 };
|
|
||||||
},
|
|
||||||
return() {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
let iterable = {
|
|
||||||
[Symbol.iterator]() {
|
|
||||||
return iterator;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
//- elems
|
|
||||||
[ x , ...{}[yield] ]
|
|
||||||
//- vals
|
|
||||||
iterable
|
|
||||||
//- teardown
|
|
||||||
iter.return().then(() => $DONE('Promise incorrectly fulfilled.'), ({ constructor }) => {
|
|
||||||
assert.sameValue(nextCount, 1);
|
|
||||||
assert.sameValue(constructor, Test262Error);
|
|
||||||
}).then($DONE, $DONE);
|
|
||||||
|
|
@ -1,35 +0,0 @@
|
|||||||
// This file was procedurally generated from the following sources:
|
|
||||||
// - src/class-fields/computed-name-empty-var-computed-name-empty-function.case
|
|
||||||
// - src/class-fields/default/cls-decl.template
|
|
||||||
/*---
|
|
||||||
description: Computed name var not initialized, computed name function (class fields)
|
|
||||||
flags: [generated]
|
|
||||||
includes: [propertyHelper.js]
|
|
||||||
info: |
|
|
||||||
1.1 New Productions
|
|
||||||
|
|
||||||
[...]
|
|
||||||
|
|
||||||
FieldDefinitionList [Yield, Await]:
|
|
||||||
FieldDefinition [?Yield, ?Await]
|
|
||||||
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
|
|
||||||
|
|
||||||
---*/
|
|
||||||
|
|
||||||
|
|
||||||
class C {
|
|
||||||
['a']; ['b'](){}
|
|
||||||
|
|
||||||
constructor() {
|
|
||||||
assert.sameValue(this.a, undefined);
|
|
||||||
verifyEnumerable(this, "a");
|
|
||||||
verifyWritable(this, "a");
|
|
||||||
verifyConfigurable(this, "a");
|
|
||||||
|
|
||||||
assert.sameValue(typeof Object.getPrototypeOf(this).b, "function");
|
|
||||||
verifyNotEnumerable(Object.getPrototypeOf(this), "b");
|
|
||||||
verifyConfigurable(Object.getPrototypeOf(this), "b");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const c = new C();
|
|
@ -1,35 +0,0 @@
|
|||||||
// This file was procedurally generated from the following sources:
|
|
||||||
// - src/class-fields/computed-name-empty-var-empty-function.case
|
|
||||||
// - src/class-fields/default/cls-decl.template
|
|
||||||
/*---
|
|
||||||
description: Computed name var not initialized, empty function (class fields)
|
|
||||||
flags: [generated]
|
|
||||||
includes: [propertyHelper.js]
|
|
||||||
info: |
|
|
||||||
1.1 New Productions
|
|
||||||
|
|
||||||
[...]
|
|
||||||
|
|
||||||
FieldDefinitionList [Yield, Await]:
|
|
||||||
FieldDefinition [?Yield, ?Await]
|
|
||||||
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
|
|
||||||
|
|
||||||
---*/
|
|
||||||
|
|
||||||
|
|
||||||
class C {
|
|
||||||
['a']; b(){}
|
|
||||||
|
|
||||||
constructor() {
|
|
||||||
assert.sameValue(this.a, undefined);
|
|
||||||
verifyEnumerable(this, "a");
|
|
||||||
verifyWritable(this, "a");
|
|
||||||
verifyConfigurable(this, "a");
|
|
||||||
|
|
||||||
assert.sameValue(typeof Object.getPrototypeOf(this).b, "function");
|
|
||||||
verifyNotEnumerable(Object.getPrototypeOf(this), "b");
|
|
||||||
verifyConfigurable(Object.getPrototypeOf(this), "b");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const c = new C();
|
|
@ -1,36 +0,0 @@
|
|||||||
// This file was procedurally generated from the following sources:
|
|
||||||
// - src/class-fields/computed-name-empty-var-empty-var.case
|
|
||||||
// - src/class-fields/default/cls-decl.template
|
|
||||||
/*---
|
|
||||||
description: Computed name var not initialized, var not initialized (class fields)
|
|
||||||
flags: [generated]
|
|
||||||
includes: [propertyHelper.js]
|
|
||||||
info: |
|
|
||||||
1.1 New Productions
|
|
||||||
|
|
||||||
[...]
|
|
||||||
|
|
||||||
FieldDefinitionList [Yield, Await]:
|
|
||||||
FieldDefinition [?Yield, ?Await]
|
|
||||||
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
|
|
||||||
|
|
||||||
---*/
|
|
||||||
|
|
||||||
|
|
||||||
class C {
|
|
||||||
['a']; b
|
|
||||||
|
|
||||||
constructor() {
|
|
||||||
assert.sameValue(this.a, undefined);
|
|
||||||
verifyEnumerable(this, "a");
|
|
||||||
verifyWritable(this, "a");
|
|
||||||
verifyConfigurable(this, "a");
|
|
||||||
|
|
||||||
assert.sameValue(this.b, undefined);
|
|
||||||
verifyEnumerable(this, "b");
|
|
||||||
verifyWritable(this, "b");
|
|
||||||
verifyConfigurable(this, "b");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const c = new C();
|
|
@ -1,35 +0,0 @@
|
|||||||
// This file was procedurally generated from the following sources:
|
|
||||||
// - src/class-fields/computed-name-empty-var-generator-empty-function.case
|
|
||||||
// - src/class-fields/default/cls-decl.template
|
|
||||||
/*---
|
|
||||||
description: Computed name var not initialized, generator empty function (class fields)
|
|
||||||
flags: [generated]
|
|
||||||
includes: [propertyHelper.js]
|
|
||||||
info: |
|
|
||||||
1.1 New Productions
|
|
||||||
|
|
||||||
[...]
|
|
||||||
|
|
||||||
FieldDefinitionList [Yield, Await]:
|
|
||||||
FieldDefinition [?Yield, ?Await]
|
|
||||||
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
|
|
||||||
|
|
||||||
---*/
|
|
||||||
|
|
||||||
|
|
||||||
class C {
|
|
||||||
['a']; *b(){}
|
|
||||||
|
|
||||||
constructor() {
|
|
||||||
assert.sameValue(this.a, undefined);
|
|
||||||
verifyEnumerable(this, "a");
|
|
||||||
verifyWritable(this, "a");
|
|
||||||
verifyConfigurable(this, "a");
|
|
||||||
|
|
||||||
assert.sameValue(typeof Object.getPrototypeOf(this).b, "function");
|
|
||||||
verifyNotEnumerable(Object.getPrototypeOf(this), "b");
|
|
||||||
verifyConfigurable(Object.getPrototypeOf(this), "b");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const c = new C();
|
|
@ -1,31 +0,0 @@
|
|||||||
// This file was procedurally generated from the following sources:
|
|
||||||
// - src/class-fields/computed-name-empty-var-new-line-asi.case
|
|
||||||
// - src/class-fields/default/cls-decl.template
|
|
||||||
/*---
|
|
||||||
description: computed name empty var and newline (ASI) (class fields)
|
|
||||||
flags: [generated]
|
|
||||||
includes: [propertyHelper.js]
|
|
||||||
info: |
|
|
||||||
1.1 New Productions
|
|
||||||
|
|
||||||
[...]
|
|
||||||
|
|
||||||
FieldDefinitionList [Yield, Await]:
|
|
||||||
FieldDefinition [?Yield, ?Await]
|
|
||||||
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
|
|
||||||
|
|
||||||
---*/
|
|
||||||
|
|
||||||
|
|
||||||
class C {
|
|
||||||
['a']
|
|
||||||
|
|
||||||
constructor() {
|
|
||||||
assert.sameValue(this.a, undefined);
|
|
||||||
verifyEnumerable(this, "a");
|
|
||||||
verifyWritable(this, "a");
|
|
||||||
verifyConfigurable(this, "a");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const c = new C();
|
|
@ -1,35 +0,0 @@
|
|||||||
// This file was procedurally generated from the following sources:
|
|
||||||
// - src/class-fields/computed-name-empty-var-new-line-computed-name-empty-function-asi.case
|
|
||||||
// - src/class-fields/default/cls-decl.template
|
|
||||||
/*---
|
|
||||||
description: computed name empty var and newline, computed name empty function (ASI) (class fields)
|
|
||||||
flags: [generated]
|
|
||||||
includes: [propertyHelper.js]
|
|
||||||
info: |
|
|
||||||
1.1 New Productions
|
|
||||||
|
|
||||||
[...]
|
|
||||||
|
|
||||||
FieldDefinitionList [Yield, Await]:
|
|
||||||
FieldDefinition [?Yield, ?Await]
|
|
||||||
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
|
|
||||||
|
|
||||||
---*/
|
|
||||||
|
|
||||||
|
|
||||||
class C {
|
|
||||||
['a']
|
|
||||||
['b'](){}
|
|
||||||
constructor() {
|
|
||||||
assert.sameValue(this.a, undefined);
|
|
||||||
verifyEnumerable(this, "a");
|
|
||||||
verifyWritable(this, "a");
|
|
||||||
verifyConfigurable(this, "a");
|
|
||||||
|
|
||||||
assert.sameValue(typeof Object.getPrototypeOf(this).b, "function");
|
|
||||||
verifyNotEnumerable(Object.getPrototypeOf(this), "b");
|
|
||||||
verifyConfigurable(Object.getPrototypeOf(this), "b");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const c = new C();
|
|
@ -1,35 +0,0 @@
|
|||||||
// This file was procedurally generated from the following sources:
|
|
||||||
// - src/class-fields/computed-name-empty-var-new-line-empty-function-asi.case
|
|
||||||
// - src/class-fields/default/cls-decl.template
|
|
||||||
/*---
|
|
||||||
description: computed name empty var and newline, empty function (ASI) (class fields)
|
|
||||||
flags: [generated]
|
|
||||||
includes: [propertyHelper.js]
|
|
||||||
info: |
|
|
||||||
1.1 New Productions
|
|
||||||
|
|
||||||
[...]
|
|
||||||
|
|
||||||
FieldDefinitionList [Yield, Await]:
|
|
||||||
FieldDefinition [?Yield, ?Await]
|
|
||||||
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
|
|
||||||
|
|
||||||
---*/
|
|
||||||
|
|
||||||
|
|
||||||
class C {
|
|
||||||
['a']
|
|
||||||
b(){}
|
|
||||||
constructor() {
|
|
||||||
assert.sameValue(this.a, undefined);
|
|
||||||
verifyEnumerable(this, "a");
|
|
||||||
verifyWritable(this, "a");
|
|
||||||
verifyConfigurable(this, "a");
|
|
||||||
|
|
||||||
assert.sameValue(typeof Object.getPrototypeOf(this).b, "function");
|
|
||||||
verifyNotEnumerable(Object.getPrototypeOf(this), "b");
|
|
||||||
verifyConfigurable(Object.getPrototypeOf(this), "b");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const c = new C();
|
|
@ -1,36 +0,0 @@
|
|||||||
// This file was procedurally generated from the following sources:
|
|
||||||
// - src/class-fields/computed-name-empty-var-new-line-empty-var-asi.case
|
|
||||||
// - src/class-fields/default/cls-decl.template
|
|
||||||
/*---
|
|
||||||
description: computed name empty var and newline, empty var (ASI) (class fields)
|
|
||||||
flags: [generated]
|
|
||||||
includes: [propertyHelper.js]
|
|
||||||
info: |
|
|
||||||
1.1 New Productions
|
|
||||||
|
|
||||||
[...]
|
|
||||||
|
|
||||||
FieldDefinitionList [Yield, Await]:
|
|
||||||
FieldDefinition [?Yield, ?Await]
|
|
||||||
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
|
|
||||||
|
|
||||||
---*/
|
|
||||||
|
|
||||||
|
|
||||||
class C {
|
|
||||||
['a']
|
|
||||||
b
|
|
||||||
constructor() {
|
|
||||||
assert.sameValue(this.a, undefined);
|
|
||||||
verifyEnumerable(this, "a");
|
|
||||||
verifyWritable(this, "a");
|
|
||||||
verifyConfigurable(this, "a");
|
|
||||||
|
|
||||||
assert.sameValue(this.b, undefined);
|
|
||||||
verifyEnumerable(this, "b");
|
|
||||||
verifyWritable(this, "b");
|
|
||||||
verifyConfigurable(this, "b");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const c = new C();
|
|
@ -1,35 +0,0 @@
|
|||||||
// This file was procedurally generated from the following sources:
|
|
||||||
// - src/class-fields/computed-name-empty-var-new-line-generator-empty-function-asi.case
|
|
||||||
// - src/class-fields/default/cls-decl.template
|
|
||||||
/*---
|
|
||||||
description: computed name empty var and newline, generator empty function (ASI) (class fields)
|
|
||||||
flags: [generated]
|
|
||||||
includes: [propertyHelper.js]
|
|
||||||
info: |
|
|
||||||
1.1 New Productions
|
|
||||||
|
|
||||||
[...]
|
|
||||||
|
|
||||||
FieldDefinitionList [Yield, Await]:
|
|
||||||
FieldDefinition [?Yield, ?Await]
|
|
||||||
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
|
|
||||||
|
|
||||||
---*/
|
|
||||||
|
|
||||||
|
|
||||||
class C {
|
|
||||||
['a']
|
|
||||||
*b(){}
|
|
||||||
constructor() {
|
|
||||||
assert.sameValue(this.a, undefined);
|
|
||||||
verifyEnumerable(this, "a");
|
|
||||||
verifyWritable(this, "a");
|
|
||||||
verifyConfigurable(this, "a");
|
|
||||||
|
|
||||||
assert.sameValue(typeof Object.getPrototypeOf(this).b, "function");
|
|
||||||
verifyNotEnumerable(Object.getPrototypeOf(this), "b");
|
|
||||||
verifyConfigurable(Object.getPrototypeOf(this), "b");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const c = new C();
|
|
@ -1,31 +0,0 @@
|
|||||||
// This file was procedurally generated from the following sources:
|
|
||||||
// - src/class-fields/computed-name-empty-var.case
|
|
||||||
// - src/class-fields/default/cls-decl.template
|
|
||||||
/*---
|
|
||||||
description: Computed name var not initialized (class fields)
|
|
||||||
flags: [generated]
|
|
||||||
includes: [propertyHelper.js]
|
|
||||||
info: |
|
|
||||||
1.1 New Productions
|
|
||||||
|
|
||||||
[...]
|
|
||||||
|
|
||||||
FieldDefinitionList [Yield, Await]:
|
|
||||||
FieldDefinition [?Yield, ?Await]
|
|
||||||
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
|
|
||||||
|
|
||||||
---*/
|
|
||||||
|
|
||||||
|
|
||||||
class C {
|
|
||||||
['a'];
|
|
||||||
|
|
||||||
constructor() {
|
|
||||||
assert.sameValue(this.a, undefined);
|
|
||||||
verifyEnumerable(this, "a");
|
|
||||||
verifyWritable(this, "a");
|
|
||||||
verifyConfigurable(this, "a");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const c = new C();
|
|
@ -1,36 +0,0 @@
|
|||||||
// This file was procedurally generated from the following sources:
|
|
||||||
// - src/class-fields/computed-name-zero-initializer-new-line-empty-bar-asi.case
|
|
||||||
// - src/class-fields/default/cls-decl.template
|
|
||||||
/*---
|
|
||||||
description: computed name zero initialized var and newline, empty var (ASI) (class fields)
|
|
||||||
flags: [generated]
|
|
||||||
includes: [propertyHelper.js]
|
|
||||||
info: |
|
|
||||||
1.1 New Productions
|
|
||||||
|
|
||||||
[...]
|
|
||||||
|
|
||||||
FieldDefinitionList [Yield, Await]:
|
|
||||||
FieldDefinition [?Yield, ?Await]
|
|
||||||
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
|
|
||||||
|
|
||||||
---*/
|
|
||||||
|
|
||||||
|
|
||||||
class C {
|
|
||||||
['a'] = 0
|
|
||||||
b
|
|
||||||
constructor() {
|
|
||||||
assert.sameValue(this.a, 0);
|
|
||||||
verifyEnumerable(this, "a");
|
|
||||||
verifyWritable(this, "a");
|
|
||||||
verifyConfigurable(this, "a");
|
|
||||||
|
|
||||||
assert.sameValue(this.b, undefined);
|
|
||||||
verifyEnumerable(this, "b");
|
|
||||||
verifyWritable(this, "b");
|
|
||||||
verifyConfigurable(this, "b");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const c = new C();
|
|
@ -1,35 +0,0 @@
|
|||||||
// This file was procedurally generated from the following sources:
|
|
||||||
// - src/class-fields/computed-name-zero-initializer-new-line-empty-function-asi.case
|
|
||||||
// - src/class-fields/default/cls-decl.template
|
|
||||||
/*---
|
|
||||||
description: computed name zero initialized var and newline, empty function (ASI) (class fields)
|
|
||||||
flags: [generated]
|
|
||||||
includes: [propertyHelper.js]
|
|
||||||
info: |
|
|
||||||
1.1 New Productions
|
|
||||||
|
|
||||||
[...]
|
|
||||||
|
|
||||||
FieldDefinitionList [Yield, Await]:
|
|
||||||
FieldDefinition [?Yield, ?Await]
|
|
||||||
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
|
|
||||||
|
|
||||||
---*/
|
|
||||||
|
|
||||||
|
|
||||||
class C {
|
|
||||||
['a'] = 0
|
|
||||||
b(){}
|
|
||||||
constructor() {
|
|
||||||
assert.sameValue(this.a, 0);
|
|
||||||
verifyEnumerable(this, "a");
|
|
||||||
verifyWritable(this, "a");
|
|
||||||
verifyConfigurable(this, "a");
|
|
||||||
|
|
||||||
assert.sameValue(typeof Object.getPrototypeOf(this).b, "function");
|
|
||||||
verifyNotEnumerable(Object.getPrototypeOf(this), "b");
|
|
||||||
verifyConfigurable(Object.getPrototypeOf(this), "b");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const c = new C();
|
|
@ -1,36 +0,0 @@
|
|||||||
// This file was procedurally generated from the following sources:
|
|
||||||
// - src/class-fields/computed-name-zero-initializer-new-line-empty-var-asi.case
|
|
||||||
// - src/class-fields/default/cls-decl.template
|
|
||||||
/*---
|
|
||||||
description: computed name zero initialized var and newline, empty var (ASI) (class fields)
|
|
||||||
flags: [generated]
|
|
||||||
includes: [propertyHelper.js]
|
|
||||||
info: |
|
|
||||||
1.1 New Productions
|
|
||||||
|
|
||||||
[...]
|
|
||||||
|
|
||||||
FieldDefinitionList [Yield, Await]:
|
|
||||||
FieldDefinition [?Yield, ?Await]
|
|
||||||
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
|
|
||||||
|
|
||||||
---*/
|
|
||||||
|
|
||||||
|
|
||||||
class C {
|
|
||||||
['a'] = 0
|
|
||||||
b
|
|
||||||
constructor() {
|
|
||||||
assert.sameValue(this.a, 0);
|
|
||||||
verifyEnumerable(this, "a");
|
|
||||||
verifyWritable(this, "a");
|
|
||||||
verifyConfigurable(this, "a");
|
|
||||||
|
|
||||||
assert.sameValue(this.b, undefined);
|
|
||||||
verifyEnumerable(this, "b");
|
|
||||||
verifyWritable(this, "b");
|
|
||||||
verifyConfigurable(this, "b");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const c = new C();
|
|
@ -1,35 +0,0 @@
|
|||||||
// This file was procedurally generated from the following sources:
|
|
||||||
// - src/class-fields/computed-name-zero-initializer-var-computed-name-empty-function.case
|
|
||||||
// - src/class-fields/default/cls-decl.template
|
|
||||||
/*---
|
|
||||||
description: Computed name var zero initialized, computed name empty function (class fields)
|
|
||||||
flags: [generated]
|
|
||||||
includes: [propertyHelper.js]
|
|
||||||
info: |
|
|
||||||
1.1 New Productions
|
|
||||||
|
|
||||||
[...]
|
|
||||||
|
|
||||||
FieldDefinitionList [Yield, Await]:
|
|
||||||
FieldDefinition [?Yield, ?Await]
|
|
||||||
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
|
|
||||||
|
|
||||||
---*/
|
|
||||||
|
|
||||||
|
|
||||||
class C {
|
|
||||||
['a'] = 0; ['b'](){}
|
|
||||||
|
|
||||||
constructor() {
|
|
||||||
assert.sameValue(this.a, 0);
|
|
||||||
verifyEnumerable(this, "a");
|
|
||||||
verifyWritable(this, "a");
|
|
||||||
verifyConfigurable(this, "a");
|
|
||||||
|
|
||||||
assert.sameValue(typeof Object.getPrototypeOf(this).b, "function");
|
|
||||||
verifyNotEnumerable(Object.getPrototypeOf(this), "b");
|
|
||||||
verifyConfigurable(Object.getPrototypeOf(this), "b");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const c = new C();
|
|
@ -1,35 +0,0 @@
|
|||||||
// This file was procedurally generated from the following sources:
|
|
||||||
// - src/class-fields/computed-name-zero-initializer-var-empty-function.case
|
|
||||||
// - src/class-fields/default/cls-decl.template
|
|
||||||
/*---
|
|
||||||
description: Computed name var zero initialized, empty function (class fields)
|
|
||||||
flags: [generated]
|
|
||||||
includes: [propertyHelper.js]
|
|
||||||
info: |
|
|
||||||
1.1 New Productions
|
|
||||||
|
|
||||||
[...]
|
|
||||||
|
|
||||||
FieldDefinitionList [Yield, Await]:
|
|
||||||
FieldDefinition [?Yield, ?Await]
|
|
||||||
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
|
|
||||||
|
|
||||||
---*/
|
|
||||||
|
|
||||||
|
|
||||||
class C {
|
|
||||||
['a'] = 0; b(){}
|
|
||||||
|
|
||||||
constructor() {
|
|
||||||
assert.sameValue(this.a, 0);
|
|
||||||
verifyEnumerable(this, "a");
|
|
||||||
verifyWritable(this, "a");
|
|
||||||
verifyConfigurable(this, "a");
|
|
||||||
|
|
||||||
assert.sameValue(typeof Object.getPrototypeOf(this).b, "function");
|
|
||||||
verifyNotEnumerable(Object.getPrototypeOf(this), "b");
|
|
||||||
verifyConfigurable(Object.getPrototypeOf(this), "b");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const c = new C();
|
|
@ -1,36 +0,0 @@
|
|||||||
// This file was procedurally generated from the following sources:
|
|
||||||
// - src/class-fields/computed-name-zero-initializer-var-empty-var.case
|
|
||||||
// - src/class-fields/default/cls-decl.template
|
|
||||||
/*---
|
|
||||||
description: Computed name var zero initialized, empty var (class fields)
|
|
||||||
flags: [generated]
|
|
||||||
includes: [propertyHelper.js]
|
|
||||||
info: |
|
|
||||||
1.1 New Productions
|
|
||||||
|
|
||||||
[...]
|
|
||||||
|
|
||||||
FieldDefinitionList [Yield, Await]:
|
|
||||||
FieldDefinition [?Yield, ?Await]
|
|
||||||
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
|
|
||||||
|
|
||||||
---*/
|
|
||||||
|
|
||||||
|
|
||||||
class C {
|
|
||||||
['a'] = 0; b
|
|
||||||
|
|
||||||
constructor() {
|
|
||||||
assert.sameValue(this.a, 0);
|
|
||||||
verifyEnumerable(this, "a");
|
|
||||||
verifyWritable(this, "a");
|
|
||||||
verifyConfigurable(this, "a");
|
|
||||||
|
|
||||||
assert.sameValue(this.b, undefined);
|
|
||||||
verifyEnumerable(this, "b");
|
|
||||||
verifyWritable(this, "b");
|
|
||||||
verifyConfigurable(this, "b");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const c = new C();
|
|
@ -1,35 +0,0 @@
|
|||||||
// This file was procedurally generated from the following sources:
|
|
||||||
// - src/class-fields/computed-name-zero-initializer-var-generator-empty-function.case
|
|
||||||
// - src/class-fields/default/cls-decl.template
|
|
||||||
/*---
|
|
||||||
description: Computed name var zero initialized, generator empty function (class fields)
|
|
||||||
flags: [generated]
|
|
||||||
includes: [propertyHelper.js]
|
|
||||||
info: |
|
|
||||||
1.1 New Productions
|
|
||||||
|
|
||||||
[...]
|
|
||||||
|
|
||||||
FieldDefinitionList [Yield, Await]:
|
|
||||||
FieldDefinition [?Yield, ?Await]
|
|
||||||
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
|
|
||||||
|
|
||||||
---*/
|
|
||||||
|
|
||||||
|
|
||||||
class C {
|
|
||||||
['a'] = 0; *b(){}
|
|
||||||
|
|
||||||
constructor() {
|
|
||||||
assert.sameValue(this.a, 0);
|
|
||||||
verifyEnumerable(this, "a");
|
|
||||||
verifyWritable(this, "a");
|
|
||||||
verifyConfigurable(this, "a");
|
|
||||||
|
|
||||||
assert.sameValue(typeof Object.getPrototypeOf(this).b, "function");
|
|
||||||
verifyNotEnumerable(Object.getPrototypeOf(this), "b");
|
|
||||||
verifyConfigurable(Object.getPrototypeOf(this), "b");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const c = new C();
|
|
@ -1,31 +0,0 @@
|
|||||||
// This file was procedurally generated from the following sources:
|
|
||||||
// - src/class-fields/computed-name-zero-initializer-var-new-line-asi.case
|
|
||||||
// - src/class-fields/default/cls-decl.template
|
|
||||||
/*---
|
|
||||||
description: computed name zero initialized var and newline (ASI) (class fields)
|
|
||||||
flags: [generated]
|
|
||||||
includes: [propertyHelper.js]
|
|
||||||
info: |
|
|
||||||
1.1 New Productions
|
|
||||||
|
|
||||||
[...]
|
|
||||||
|
|
||||||
FieldDefinitionList [Yield, Await]:
|
|
||||||
FieldDefinition [?Yield, ?Await]
|
|
||||||
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
|
|
||||||
|
|
||||||
---*/
|
|
||||||
|
|
||||||
|
|
||||||
class C {
|
|
||||||
['a'] = 0
|
|
||||||
|
|
||||||
constructor() {
|
|
||||||
assert.sameValue(this.a, 0);
|
|
||||||
verifyEnumerable(this, "a");
|
|
||||||
verifyWritable(this, "a");
|
|
||||||
verifyConfigurable(this, "a");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const c = new C();
|
|
@ -1,31 +0,0 @@
|
|||||||
// This file was procedurally generated from the following sources:
|
|
||||||
// - src/class-fields/computed-name-zero-initializer-var.case
|
|
||||||
// - src/class-fields/default/cls-decl.template
|
|
||||||
/*---
|
|
||||||
description: Computed name var zero initialized (class fields)
|
|
||||||
flags: [generated]
|
|
||||||
includes: [propertyHelper.js]
|
|
||||||
info: |
|
|
||||||
1.1 New Productions
|
|
||||||
|
|
||||||
[...]
|
|
||||||
|
|
||||||
FieldDefinitionList [Yield, Await]:
|
|
||||||
FieldDefinition [?Yield, ?Await]
|
|
||||||
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
|
|
||||||
|
|
||||||
---*/
|
|
||||||
|
|
||||||
|
|
||||||
class C {
|
|
||||||
['a'] = 0;
|
|
||||||
|
|
||||||
constructor() {
|
|
||||||
assert.sameValue(this.a, 0);
|
|
||||||
verifyEnumerable(this, "a");
|
|
||||||
verifyWritable(this, "a");
|
|
||||||
verifyConfigurable(this, "a");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const c = new C();
|
|
@ -1,36 +0,0 @@
|
|||||||
// This file was procedurally generated from the following sources:
|
|
||||||
// - src/class-fields/double-empty-var.case
|
|
||||||
// - src/class-fields/default/cls-decl.template
|
|
||||||
/*---
|
|
||||||
description: Empty var, empty var (class fields)
|
|
||||||
flags: [generated]
|
|
||||||
includes: [propertyHelper.js]
|
|
||||||
info: |
|
|
||||||
1.1 New Productions
|
|
||||||
|
|
||||||
[...]
|
|
||||||
|
|
||||||
FieldDefinitionList [Yield, Await]:
|
|
||||||
FieldDefinition [?Yield, ?Await]
|
|
||||||
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
|
|
||||||
|
|
||||||
---*/
|
|
||||||
|
|
||||||
|
|
||||||
class C {
|
|
||||||
a; b;
|
|
||||||
|
|
||||||
constructor() {
|
|
||||||
assert.sameValue(this.a, undefined);
|
|
||||||
verifyEnumerable(this, "a");
|
|
||||||
verifyWritable(this, "a");
|
|
||||||
verifyConfigurable(this, "a");
|
|
||||||
|
|
||||||
assert.sameValue(this.b, undefined);
|
|
||||||
verifyEnumerable(this, "b");
|
|
||||||
verifyWritable(this, "b");
|
|
||||||
verifyConfigurable(this, "b");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const c = new C();
|
|
@ -1,31 +0,0 @@
|
|||||||
// This file was procedurally generated from the following sources:
|
|
||||||
// - src/class-fields/empty-string-var.case
|
|
||||||
// - src/class-fields/default/cls-decl.template
|
|
||||||
/*---
|
|
||||||
description: Empty string var (class fields)
|
|
||||||
flags: [generated]
|
|
||||||
includes: [propertyHelper.js]
|
|
||||||
info: |
|
|
||||||
1.1 New Productions
|
|
||||||
|
|
||||||
[...]
|
|
||||||
|
|
||||||
FieldDefinitionList [Yield, Await]:
|
|
||||||
FieldDefinition [?Yield, ?Await]
|
|
||||||
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
|
|
||||||
|
|
||||||
---*/
|
|
||||||
|
|
||||||
|
|
||||||
class C {
|
|
||||||
'a';
|
|
||||||
|
|
||||||
constructor() {
|
|
||||||
assert.sameValue(this.a, undefined);
|
|
||||||
verifyEnumerable(this, "a");
|
|
||||||
verifyWritable(this, "a");
|
|
||||||
verifyConfigurable(this, "a");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const c = new C();
|
|
@ -1,35 +0,0 @@
|
|||||||
// This file was procedurally generated from the following sources:
|
|
||||||
// - src/class-fields/empty-var-computed-name-empty-function.case
|
|
||||||
// - src/class-fields/default/cls-decl.template
|
|
||||||
/*---
|
|
||||||
description: empty var, computed name empty function (class fields)
|
|
||||||
flags: [generated]
|
|
||||||
includes: [propertyHelper.js]
|
|
||||||
info: |
|
|
||||||
1.1 New Productions
|
|
||||||
|
|
||||||
[...]
|
|
||||||
|
|
||||||
FieldDefinitionList [Yield, Await]:
|
|
||||||
FieldDefinition [?Yield, ?Await]
|
|
||||||
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
|
|
||||||
|
|
||||||
---*/
|
|
||||||
|
|
||||||
|
|
||||||
class C {
|
|
||||||
a; ['b'](){}
|
|
||||||
|
|
||||||
constructor() {
|
|
||||||
assert.sameValue(this.a, undefined);
|
|
||||||
verifyEnumerable(this, "a");
|
|
||||||
verifyWritable(this, "a");
|
|
||||||
verifyConfigurable(this, "a");
|
|
||||||
|
|
||||||
assert.sameValue(typeof Object.getPrototypeOf(this).b, "function");
|
|
||||||
verifyNotEnumerable(Object.getPrototypeOf(this), "b");
|
|
||||||
verifyConfigurable(Object.getPrototypeOf(this), "b");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const c = new C();
|
|
@ -1,35 +0,0 @@
|
|||||||
// This file was procedurally generated from the following sources:
|
|
||||||
// - src/class-fields/empty-var-empty-function.case
|
|
||||||
// - src/class-fields/default/cls-decl.template
|
|
||||||
/*---
|
|
||||||
description: Empty var, empty function (class fields)
|
|
||||||
flags: [generated]
|
|
||||||
includes: [propertyHelper.js]
|
|
||||||
info: |
|
|
||||||
1.1 New Productions
|
|
||||||
|
|
||||||
[...]
|
|
||||||
|
|
||||||
FieldDefinitionList [Yield, Await]:
|
|
||||||
FieldDefinition [?Yield, ?Await]
|
|
||||||
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
|
|
||||||
|
|
||||||
---*/
|
|
||||||
|
|
||||||
|
|
||||||
class C {
|
|
||||||
a; b(){}
|
|
||||||
|
|
||||||
constructor() {
|
|
||||||
assert.sameValue(this.a, undefined);
|
|
||||||
verifyEnumerable(this, "a");
|
|
||||||
verifyWritable(this, "a");
|
|
||||||
verifyConfigurable(this, "a");
|
|
||||||
|
|
||||||
assert.sameValue(typeof Object.getPrototypeOf(this).b, "function");
|
|
||||||
verifyNotEnumerable(Object.getPrototypeOf(this), "b");
|
|
||||||
verifyConfigurable(Object.getPrototypeOf(this), "b");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const c = new C();
|
|
@ -1,35 +0,0 @@
|
|||||||
// This file was procedurally generated from the following sources:
|
|
||||||
// - src/class-fields/empty-var-generator-empty-function.case
|
|
||||||
// - src/class-fields/default/cls-decl.template
|
|
||||||
/*---
|
|
||||||
description: Empty var, generator empty function (class fields)
|
|
||||||
flags: [generated]
|
|
||||||
includes: [propertyHelper.js]
|
|
||||||
info: |
|
|
||||||
1.1 New Productions
|
|
||||||
|
|
||||||
[...]
|
|
||||||
|
|
||||||
FieldDefinitionList [Yield, Await]:
|
|
||||||
FieldDefinition [?Yield, ?Await]
|
|
||||||
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
|
|
||||||
|
|
||||||
---*/
|
|
||||||
|
|
||||||
|
|
||||||
class C {
|
|
||||||
a; *b(){}
|
|
||||||
|
|
||||||
constructor() {
|
|
||||||
assert.sameValue(this.a, undefined);
|
|
||||||
verifyEnumerable(this, "a");
|
|
||||||
verifyWritable(this, "a");
|
|
||||||
verifyConfigurable(this, "a");
|
|
||||||
|
|
||||||
assert.sameValue(typeof Object.getPrototypeOf(this).b, "function");
|
|
||||||
verifyNotEnumerable(Object.getPrototypeOf(this), "b");
|
|
||||||
verifyConfigurable(Object.getPrototypeOf(this), "b");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const c = new C();
|
|
@ -1,31 +0,0 @@
|
|||||||
// This file was procedurally generated from the following sources:
|
|
||||||
// - src/class-fields/empty-var-new-line-asi.case
|
|
||||||
// - src/class-fields/default/cls-decl.template
|
|
||||||
/*---
|
|
||||||
description: empty var and newline (ASI) (class fields)
|
|
||||||
flags: [generated]
|
|
||||||
includes: [propertyHelper.js]
|
|
||||||
info: |
|
|
||||||
1.1 New Productions
|
|
||||||
|
|
||||||
[...]
|
|
||||||
|
|
||||||
FieldDefinitionList [Yield, Await]:
|
|
||||||
FieldDefinition [?Yield, ?Await]
|
|
||||||
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
|
|
||||||
|
|
||||||
---*/
|
|
||||||
|
|
||||||
|
|
||||||
class C {
|
|
||||||
a
|
|
||||||
|
|
||||||
constructor() {
|
|
||||||
assert.sameValue(this.a, undefined);
|
|
||||||
verifyEnumerable(this, "a");
|
|
||||||
verifyWritable(this, "a");
|
|
||||||
verifyConfigurable(this, "a");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const c = new C();
|
|
@ -1,35 +0,0 @@
|
|||||||
// This file was procedurally generated from the following sources:
|
|
||||||
// - src/class-fields/empty-var-new-line-computed-name-function-asi.case
|
|
||||||
// - src/class-fields/default/cls-decl.template
|
|
||||||
/*---
|
|
||||||
description: empty var and newline, computed name empty function (ASI) (class fields)
|
|
||||||
flags: [generated]
|
|
||||||
includes: [propertyHelper.js]
|
|
||||||
info: |
|
|
||||||
1.1 New Productions
|
|
||||||
|
|
||||||
[...]
|
|
||||||
|
|
||||||
FieldDefinitionList [Yield, Await]:
|
|
||||||
FieldDefinition [?Yield, ?Await]
|
|
||||||
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
|
|
||||||
|
|
||||||
---*/
|
|
||||||
|
|
||||||
|
|
||||||
class C {
|
|
||||||
a
|
|
||||||
['b'](){}
|
|
||||||
constructor() {
|
|
||||||
assert.sameValue(this.a, undefined);
|
|
||||||
verifyEnumerable(this, "a");
|
|
||||||
verifyWritable(this, "a");
|
|
||||||
verifyConfigurable(this, "a");
|
|
||||||
|
|
||||||
assert.sameValue(typeof Object.getPrototypeOf(this).b, "function");
|
|
||||||
verifyNotEnumerable(Object.getPrototypeOf(this), "b");
|
|
||||||
verifyConfigurable(Object.getPrototypeOf(this), "b");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const c = new C();
|
|
@ -1,35 +0,0 @@
|
|||||||
// This file was procedurally generated from the following sources:
|
|
||||||
// - src/class-fields/empty-var-new-line-empty-function-asi.case
|
|
||||||
// - src/class-fields/default/cls-decl.template
|
|
||||||
/*---
|
|
||||||
description: empty var and newline, empty function (ASI) (class fields)
|
|
||||||
flags: [generated]
|
|
||||||
includes: [propertyHelper.js]
|
|
||||||
info: |
|
|
||||||
1.1 New Productions
|
|
||||||
|
|
||||||
[...]
|
|
||||||
|
|
||||||
FieldDefinitionList [Yield, Await]:
|
|
||||||
FieldDefinition [?Yield, ?Await]
|
|
||||||
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
|
|
||||||
|
|
||||||
---*/
|
|
||||||
|
|
||||||
|
|
||||||
class C {
|
|
||||||
a
|
|
||||||
b(){}
|
|
||||||
constructor() {
|
|
||||||
assert.sameValue(this.a, undefined);
|
|
||||||
verifyEnumerable(this, "a");
|
|
||||||
verifyWritable(this, "a");
|
|
||||||
verifyConfigurable(this, "a");
|
|
||||||
|
|
||||||
assert.sameValue(typeof Object.getPrototypeOf(this).b, "function");
|
|
||||||
verifyNotEnumerable(Object.getPrototypeOf(this), "b");
|
|
||||||
verifyConfigurable(Object.getPrototypeOf(this), "b");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const c = new C();
|
|
@ -1,37 +0,0 @@
|
|||||||
// This file was procedurally generated from the following sources:
|
|
||||||
// - src/class-fields/empty-var-new-line-empty-var-new-line-asi.case
|
|
||||||
// - src/class-fields/default/cls-decl.template
|
|
||||||
/*---
|
|
||||||
description: empty var and newline, empty var and newline (ASI) (class fields)
|
|
||||||
flags: [generated]
|
|
||||||
includes: [propertyHelper.js]
|
|
||||||
info: |
|
|
||||||
1.1 New Productions
|
|
||||||
|
|
||||||
[...]
|
|
||||||
|
|
||||||
FieldDefinitionList [Yield, Await]:
|
|
||||||
FieldDefinition [?Yield, ?Await]
|
|
||||||
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
|
|
||||||
|
|
||||||
---*/
|
|
||||||
|
|
||||||
|
|
||||||
class C {
|
|
||||||
a
|
|
||||||
b
|
|
||||||
|
|
||||||
constructor() {
|
|
||||||
assert.sameValue(this.a, undefined);
|
|
||||||
verifyEnumerable(this, "a");
|
|
||||||
verifyWritable(this, "a");
|
|
||||||
verifyConfigurable(this, "a");
|
|
||||||
|
|
||||||
assert.sameValue(this.b, undefined);
|
|
||||||
verifyEnumerable(this, "b");
|
|
||||||
verifyWritable(this, "b");
|
|
||||||
verifyConfigurable(this, "b");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const c = new C();
|
|
@ -1,35 +0,0 @@
|
|||||||
// This file was procedurally generated from the following sources:
|
|
||||||
// - src/class-fields/empty-var-new-line-generator-empty-function-asi.case
|
|
||||||
// - src/class-fields/default/cls-decl.template
|
|
||||||
/*---
|
|
||||||
description: empty var and newline, generator empty function (ASI) (class fields)
|
|
||||||
flags: [generated]
|
|
||||||
includes: [propertyHelper.js]
|
|
||||||
info: |
|
|
||||||
1.1 New Productions
|
|
||||||
|
|
||||||
[...]
|
|
||||||
|
|
||||||
FieldDefinitionList [Yield, Await]:
|
|
||||||
FieldDefinition [?Yield, ?Await]
|
|
||||||
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
|
|
||||||
|
|
||||||
---*/
|
|
||||||
|
|
||||||
|
|
||||||
class C {
|
|
||||||
a
|
|
||||||
*b(){}
|
|
||||||
constructor() {
|
|
||||||
assert.sameValue(this.a, undefined);
|
|
||||||
verifyEnumerable(this, "a");
|
|
||||||
verifyWritable(this, "a");
|
|
||||||
verifyConfigurable(this, "a");
|
|
||||||
|
|
||||||
assert.sameValue(typeof Object.getPrototypeOf(this).b, "function");
|
|
||||||
verifyNotEnumerable(Object.getPrototypeOf(this), "b");
|
|
||||||
verifyConfigurable(Object.getPrototypeOf(this), "b");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const c = new C();
|
|
@ -1,31 +0,0 @@
|
|||||||
// This file was procedurally generated from the following sources:
|
|
||||||
// - src/class-fields/empty-var.case
|
|
||||||
// - src/class-fields/default/cls-decl.template
|
|
||||||
/*---
|
|
||||||
description: Empty var (class fields)
|
|
||||||
flags: [generated]
|
|
||||||
includes: [propertyHelper.js]
|
|
||||||
info: |
|
|
||||||
1.1 New Productions
|
|
||||||
|
|
||||||
[...]
|
|
||||||
|
|
||||||
FieldDefinitionList [Yield, Await]:
|
|
||||||
FieldDefinition [?Yield, ?Await]
|
|
||||||
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
|
|
||||||
|
|
||||||
---*/
|
|
||||||
|
|
||||||
|
|
||||||
class C {
|
|
||||||
a;
|
|
||||||
|
|
||||||
constructor() {
|
|
||||||
assert.sameValue(this.a, undefined);
|
|
||||||
verifyEnumerable(this, "a");
|
|
||||||
verifyWritable(this, "a");
|
|
||||||
verifyConfigurable(this, "a");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const c = new C();
|
|
@ -1,37 +0,0 @@
|
|||||||
// This file was procedurally generated from the following sources:
|
|
||||||
// - src/class-fields/computed-name-empty-var-computed-name-empty-function.case
|
|
||||||
// - src/class-fields/default/cls-decl-extends.template
|
|
||||||
/*---
|
|
||||||
description: Computed name var not initialized, computed name function (class fields)
|
|
||||||
flags: [generated]
|
|
||||||
includes: [propertyHelper.js]
|
|
||||||
info: |
|
|
||||||
1.1 New Productions
|
|
||||||
|
|
||||||
[...]
|
|
||||||
|
|
||||||
FieldDefinitionList [Yield, Await]:
|
|
||||||
FieldDefinition [?Yield, ?Await]
|
|
||||||
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
|
|
||||||
|
|
||||||
---*/
|
|
||||||
|
|
||||||
|
|
||||||
class Base {}
|
|
||||||
class C extends Base {
|
|
||||||
['a']; ['b'](){}
|
|
||||||
|
|
||||||
constructor() {
|
|
||||||
super();
|
|
||||||
assert.sameValue(this.a, undefined);
|
|
||||||
verifyEnumerable(this, "a");
|
|
||||||
verifyWritable(this, "a");
|
|
||||||
verifyConfigurable(this, "a");
|
|
||||||
|
|
||||||
assert.sameValue(typeof Object.getPrototypeOf(this).b, "function");
|
|
||||||
verifyNotEnumerable(Object.getPrototypeOf(this), "b");
|
|
||||||
verifyConfigurable(Object.getPrototypeOf(this), "b");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const c = new C();
|
|
@ -1,37 +0,0 @@
|
|||||||
// This file was procedurally generated from the following sources:
|
|
||||||
// - src/class-fields/computed-name-empty-var-empty-function.case
|
|
||||||
// - src/class-fields/default/cls-decl-extends.template
|
|
||||||
/*---
|
|
||||||
description: Computed name var not initialized, empty function (class fields)
|
|
||||||
flags: [generated]
|
|
||||||
includes: [propertyHelper.js]
|
|
||||||
info: |
|
|
||||||
1.1 New Productions
|
|
||||||
|
|
||||||
[...]
|
|
||||||
|
|
||||||
FieldDefinitionList [Yield, Await]:
|
|
||||||
FieldDefinition [?Yield, ?Await]
|
|
||||||
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
|
|
||||||
|
|
||||||
---*/
|
|
||||||
|
|
||||||
|
|
||||||
class Base {}
|
|
||||||
class C extends Base {
|
|
||||||
['a']; b(){}
|
|
||||||
|
|
||||||
constructor() {
|
|
||||||
super();
|
|
||||||
assert.sameValue(this.a, undefined);
|
|
||||||
verifyEnumerable(this, "a");
|
|
||||||
verifyWritable(this, "a");
|
|
||||||
verifyConfigurable(this, "a");
|
|
||||||
|
|
||||||
assert.sameValue(typeof Object.getPrototypeOf(this).b, "function");
|
|
||||||
verifyNotEnumerable(Object.getPrototypeOf(this), "b");
|
|
||||||
verifyConfigurable(Object.getPrototypeOf(this), "b");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const c = new C();
|
|
@ -1,38 +0,0 @@
|
|||||||
// This file was procedurally generated from the following sources:
|
|
||||||
// - src/class-fields/computed-name-empty-var-empty-var.case
|
|
||||||
// - src/class-fields/default/cls-decl-extends.template
|
|
||||||
/*---
|
|
||||||
description: Computed name var not initialized, var not initialized (class fields)
|
|
||||||
flags: [generated]
|
|
||||||
includes: [propertyHelper.js]
|
|
||||||
info: |
|
|
||||||
1.1 New Productions
|
|
||||||
|
|
||||||
[...]
|
|
||||||
|
|
||||||
FieldDefinitionList [Yield, Await]:
|
|
||||||
FieldDefinition [?Yield, ?Await]
|
|
||||||
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
|
|
||||||
|
|
||||||
---*/
|
|
||||||
|
|
||||||
|
|
||||||
class Base {}
|
|
||||||
class C extends Base {
|
|
||||||
['a']; b
|
|
||||||
|
|
||||||
constructor() {
|
|
||||||
super();
|
|
||||||
assert.sameValue(this.a, undefined);
|
|
||||||
verifyEnumerable(this, "a");
|
|
||||||
verifyWritable(this, "a");
|
|
||||||
verifyConfigurable(this, "a");
|
|
||||||
|
|
||||||
assert.sameValue(this.b, undefined);
|
|
||||||
verifyEnumerable(this, "b");
|
|
||||||
verifyWritable(this, "b");
|
|
||||||
verifyConfigurable(this, "b");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const c = new C();
|
|
@ -1,37 +0,0 @@
|
|||||||
// This file was procedurally generated from the following sources:
|
|
||||||
// - src/class-fields/computed-name-empty-var-generator-empty-function.case
|
|
||||||
// - src/class-fields/default/cls-decl-extends.template
|
|
||||||
/*---
|
|
||||||
description: Computed name var not initialized, generator empty function (class fields)
|
|
||||||
flags: [generated]
|
|
||||||
includes: [propertyHelper.js]
|
|
||||||
info: |
|
|
||||||
1.1 New Productions
|
|
||||||
|
|
||||||
[...]
|
|
||||||
|
|
||||||
FieldDefinitionList [Yield, Await]:
|
|
||||||
FieldDefinition [?Yield, ?Await]
|
|
||||||
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
|
|
||||||
|
|
||||||
---*/
|
|
||||||
|
|
||||||
|
|
||||||
class Base {}
|
|
||||||
class C extends Base {
|
|
||||||
['a']; *b(){}
|
|
||||||
|
|
||||||
constructor() {
|
|
||||||
super();
|
|
||||||
assert.sameValue(this.a, undefined);
|
|
||||||
verifyEnumerable(this, "a");
|
|
||||||
verifyWritable(this, "a");
|
|
||||||
verifyConfigurable(this, "a");
|
|
||||||
|
|
||||||
assert.sameValue(typeof Object.getPrototypeOf(this).b, "function");
|
|
||||||
verifyNotEnumerable(Object.getPrototypeOf(this), "b");
|
|
||||||
verifyConfigurable(Object.getPrototypeOf(this), "b");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const c = new C();
|
|
@ -1,33 +0,0 @@
|
|||||||
// This file was procedurally generated from the following sources:
|
|
||||||
// - src/class-fields/computed-name-empty-var-new-line-asi.case
|
|
||||||
// - src/class-fields/default/cls-decl-extends.template
|
|
||||||
/*---
|
|
||||||
description: computed name empty var and newline (ASI) (class fields)
|
|
||||||
flags: [generated]
|
|
||||||
includes: [propertyHelper.js]
|
|
||||||
info: |
|
|
||||||
1.1 New Productions
|
|
||||||
|
|
||||||
[...]
|
|
||||||
|
|
||||||
FieldDefinitionList [Yield, Await]:
|
|
||||||
FieldDefinition [?Yield, ?Await]
|
|
||||||
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
|
|
||||||
|
|
||||||
---*/
|
|
||||||
|
|
||||||
|
|
||||||
class Base {}
|
|
||||||
class C extends Base {
|
|
||||||
['a']
|
|
||||||
|
|
||||||
constructor() {
|
|
||||||
super();
|
|
||||||
assert.sameValue(this.a, undefined);
|
|
||||||
verifyEnumerable(this, "a");
|
|
||||||
verifyWritable(this, "a");
|
|
||||||
verifyConfigurable(this, "a");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const c = new C();
|
|
@ -1,37 +0,0 @@
|
|||||||
// This file was procedurally generated from the following sources:
|
|
||||||
// - src/class-fields/computed-name-empty-var-new-line-computed-name-empty-function-asi.case
|
|
||||||
// - src/class-fields/default/cls-decl-extends.template
|
|
||||||
/*---
|
|
||||||
description: computed name empty var and newline, computed name empty function (ASI) (class fields)
|
|
||||||
flags: [generated]
|
|
||||||
includes: [propertyHelper.js]
|
|
||||||
info: |
|
|
||||||
1.1 New Productions
|
|
||||||
|
|
||||||
[...]
|
|
||||||
|
|
||||||
FieldDefinitionList [Yield, Await]:
|
|
||||||
FieldDefinition [?Yield, ?Await]
|
|
||||||
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
|
|
||||||
|
|
||||||
---*/
|
|
||||||
|
|
||||||
|
|
||||||
class Base {}
|
|
||||||
class C extends Base {
|
|
||||||
['a']
|
|
||||||
['b'](){}
|
|
||||||
constructor() {
|
|
||||||
super();
|
|
||||||
assert.sameValue(this.a, undefined);
|
|
||||||
verifyEnumerable(this, "a");
|
|
||||||
verifyWritable(this, "a");
|
|
||||||
verifyConfigurable(this, "a");
|
|
||||||
|
|
||||||
assert.sameValue(typeof Object.getPrototypeOf(this).b, "function");
|
|
||||||
verifyNotEnumerable(Object.getPrototypeOf(this), "b");
|
|
||||||
verifyConfigurable(Object.getPrototypeOf(this), "b");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const c = new C();
|
|
@ -1,37 +0,0 @@
|
|||||||
// This file was procedurally generated from the following sources:
|
|
||||||
// - src/class-fields/computed-name-empty-var-new-line-empty-function-asi.case
|
|
||||||
// - src/class-fields/default/cls-decl-extends.template
|
|
||||||
/*---
|
|
||||||
description: computed name empty var and newline, empty function (ASI) (class fields)
|
|
||||||
flags: [generated]
|
|
||||||
includes: [propertyHelper.js]
|
|
||||||
info: |
|
|
||||||
1.1 New Productions
|
|
||||||
|
|
||||||
[...]
|
|
||||||
|
|
||||||
FieldDefinitionList [Yield, Await]:
|
|
||||||
FieldDefinition [?Yield, ?Await]
|
|
||||||
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
|
|
||||||
|
|
||||||
---*/
|
|
||||||
|
|
||||||
|
|
||||||
class Base {}
|
|
||||||
class C extends Base {
|
|
||||||
['a']
|
|
||||||
b(){}
|
|
||||||
constructor() {
|
|
||||||
super();
|
|
||||||
assert.sameValue(this.a, undefined);
|
|
||||||
verifyEnumerable(this, "a");
|
|
||||||
verifyWritable(this, "a");
|
|
||||||
verifyConfigurable(this, "a");
|
|
||||||
|
|
||||||
assert.sameValue(typeof Object.getPrototypeOf(this).b, "function");
|
|
||||||
verifyNotEnumerable(Object.getPrototypeOf(this), "b");
|
|
||||||
verifyConfigurable(Object.getPrototypeOf(this), "b");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const c = new C();
|
|
@ -1,38 +0,0 @@
|
|||||||
// This file was procedurally generated from the following sources:
|
|
||||||
// - src/class-fields/computed-name-empty-var-new-line-empty-var-asi.case
|
|
||||||
// - src/class-fields/default/cls-decl-extends.template
|
|
||||||
/*---
|
|
||||||
description: computed name empty var and newline, empty var (ASI) (class fields)
|
|
||||||
flags: [generated]
|
|
||||||
includes: [propertyHelper.js]
|
|
||||||
info: |
|
|
||||||
1.1 New Productions
|
|
||||||
|
|
||||||
[...]
|
|
||||||
|
|
||||||
FieldDefinitionList [Yield, Await]:
|
|
||||||
FieldDefinition [?Yield, ?Await]
|
|
||||||
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
|
|
||||||
|
|
||||||
---*/
|
|
||||||
|
|
||||||
|
|
||||||
class Base {}
|
|
||||||
class C extends Base {
|
|
||||||
['a']
|
|
||||||
b
|
|
||||||
constructor() {
|
|
||||||
super();
|
|
||||||
assert.sameValue(this.a, undefined);
|
|
||||||
verifyEnumerable(this, "a");
|
|
||||||
verifyWritable(this, "a");
|
|
||||||
verifyConfigurable(this, "a");
|
|
||||||
|
|
||||||
assert.sameValue(this.b, undefined);
|
|
||||||
verifyEnumerable(this, "b");
|
|
||||||
verifyWritable(this, "b");
|
|
||||||
verifyConfigurable(this, "b");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const c = new C();
|
|
@ -1,37 +0,0 @@
|
|||||||
// This file was procedurally generated from the following sources:
|
|
||||||
// - src/class-fields/computed-name-empty-var-new-line-generator-empty-function-asi.case
|
|
||||||
// - src/class-fields/default/cls-decl-extends.template
|
|
||||||
/*---
|
|
||||||
description: computed name empty var and newline, generator empty function (ASI) (class fields)
|
|
||||||
flags: [generated]
|
|
||||||
includes: [propertyHelper.js]
|
|
||||||
info: |
|
|
||||||
1.1 New Productions
|
|
||||||
|
|
||||||
[...]
|
|
||||||
|
|
||||||
FieldDefinitionList [Yield, Await]:
|
|
||||||
FieldDefinition [?Yield, ?Await]
|
|
||||||
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
|
|
||||||
|
|
||||||
---*/
|
|
||||||
|
|
||||||
|
|
||||||
class Base {}
|
|
||||||
class C extends Base {
|
|
||||||
['a']
|
|
||||||
*b(){}
|
|
||||||
constructor() {
|
|
||||||
super();
|
|
||||||
assert.sameValue(this.a, undefined);
|
|
||||||
verifyEnumerable(this, "a");
|
|
||||||
verifyWritable(this, "a");
|
|
||||||
verifyConfigurable(this, "a");
|
|
||||||
|
|
||||||
assert.sameValue(typeof Object.getPrototypeOf(this).b, "function");
|
|
||||||
verifyNotEnumerable(Object.getPrototypeOf(this), "b");
|
|
||||||
verifyConfigurable(Object.getPrototypeOf(this), "b");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const c = new C();
|
|
@ -1,33 +0,0 @@
|
|||||||
// This file was procedurally generated from the following sources:
|
|
||||||
// - src/class-fields/computed-name-empty-var.case
|
|
||||||
// - src/class-fields/default/cls-decl-extends.template
|
|
||||||
/*---
|
|
||||||
description: Computed name var not initialized (class fields)
|
|
||||||
flags: [generated]
|
|
||||||
includes: [propertyHelper.js]
|
|
||||||
info: |
|
|
||||||
1.1 New Productions
|
|
||||||
|
|
||||||
[...]
|
|
||||||
|
|
||||||
FieldDefinitionList [Yield, Await]:
|
|
||||||
FieldDefinition [?Yield, ?Await]
|
|
||||||
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
|
|
||||||
|
|
||||||
---*/
|
|
||||||
|
|
||||||
|
|
||||||
class Base {}
|
|
||||||
class C extends Base {
|
|
||||||
['a'];
|
|
||||||
|
|
||||||
constructor() {
|
|
||||||
super();
|
|
||||||
assert.sameValue(this.a, undefined);
|
|
||||||
verifyEnumerable(this, "a");
|
|
||||||
verifyWritable(this, "a");
|
|
||||||
verifyConfigurable(this, "a");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const c = new C();
|
|
@ -1,38 +0,0 @@
|
|||||||
// This file was procedurally generated from the following sources:
|
|
||||||
// - src/class-fields/computed-name-zero-initializer-new-line-empty-bar-asi.case
|
|
||||||
// - src/class-fields/default/cls-decl-extends.template
|
|
||||||
/*---
|
|
||||||
description: computed name zero initialized var and newline, empty var (ASI) (class fields)
|
|
||||||
flags: [generated]
|
|
||||||
includes: [propertyHelper.js]
|
|
||||||
info: |
|
|
||||||
1.1 New Productions
|
|
||||||
|
|
||||||
[...]
|
|
||||||
|
|
||||||
FieldDefinitionList [Yield, Await]:
|
|
||||||
FieldDefinition [?Yield, ?Await]
|
|
||||||
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
|
|
||||||
|
|
||||||
---*/
|
|
||||||
|
|
||||||
|
|
||||||
class Base {}
|
|
||||||
class C extends Base {
|
|
||||||
['a'] = 0
|
|
||||||
b
|
|
||||||
constructor() {
|
|
||||||
super();
|
|
||||||
assert.sameValue(this.a, 0);
|
|
||||||
verifyEnumerable(this, "a");
|
|
||||||
verifyWritable(this, "a");
|
|
||||||
verifyConfigurable(this, "a");
|
|
||||||
|
|
||||||
assert.sameValue(this.b, undefined);
|
|
||||||
verifyEnumerable(this, "b");
|
|
||||||
verifyWritable(this, "b");
|
|
||||||
verifyConfigurable(this, "b");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const c = new C();
|
|
@ -1,37 +0,0 @@
|
|||||||
// This file was procedurally generated from the following sources:
|
|
||||||
// - src/class-fields/computed-name-zero-initializer-new-line-empty-function-asi.case
|
|
||||||
// - src/class-fields/default/cls-decl-extends.template
|
|
||||||
/*---
|
|
||||||
description: computed name zero initialized var and newline, empty function (ASI) (class fields)
|
|
||||||
flags: [generated]
|
|
||||||
includes: [propertyHelper.js]
|
|
||||||
info: |
|
|
||||||
1.1 New Productions
|
|
||||||
|
|
||||||
[...]
|
|
||||||
|
|
||||||
FieldDefinitionList [Yield, Await]:
|
|
||||||
FieldDefinition [?Yield, ?Await]
|
|
||||||
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
|
|
||||||
|
|
||||||
---*/
|
|
||||||
|
|
||||||
|
|
||||||
class Base {}
|
|
||||||
class C extends Base {
|
|
||||||
['a'] = 0
|
|
||||||
b(){}
|
|
||||||
constructor() {
|
|
||||||
super();
|
|
||||||
assert.sameValue(this.a, 0);
|
|
||||||
verifyEnumerable(this, "a");
|
|
||||||
verifyWritable(this, "a");
|
|
||||||
verifyConfigurable(this, "a");
|
|
||||||
|
|
||||||
assert.sameValue(typeof Object.getPrototypeOf(this).b, "function");
|
|
||||||
verifyNotEnumerable(Object.getPrototypeOf(this), "b");
|
|
||||||
verifyConfigurable(Object.getPrototypeOf(this), "b");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const c = new C();
|
|
@ -1,38 +0,0 @@
|
|||||||
// This file was procedurally generated from the following sources:
|
|
||||||
// - src/class-fields/computed-name-zero-initializer-new-line-empty-var-asi.case
|
|
||||||
// - src/class-fields/default/cls-decl-extends.template
|
|
||||||
/*---
|
|
||||||
description: computed name zero initialized var and newline, empty var (ASI) (class fields)
|
|
||||||
flags: [generated]
|
|
||||||
includes: [propertyHelper.js]
|
|
||||||
info: |
|
|
||||||
1.1 New Productions
|
|
||||||
|
|
||||||
[...]
|
|
||||||
|
|
||||||
FieldDefinitionList [Yield, Await]:
|
|
||||||
FieldDefinition [?Yield, ?Await]
|
|
||||||
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
|
|
||||||
|
|
||||||
---*/
|
|
||||||
|
|
||||||
|
|
||||||
class Base {}
|
|
||||||
class C extends Base {
|
|
||||||
['a'] = 0
|
|
||||||
b
|
|
||||||
constructor() {
|
|
||||||
super();
|
|
||||||
assert.sameValue(this.a, 0);
|
|
||||||
verifyEnumerable(this, "a");
|
|
||||||
verifyWritable(this, "a");
|
|
||||||
verifyConfigurable(this, "a");
|
|
||||||
|
|
||||||
assert.sameValue(this.b, undefined);
|
|
||||||
verifyEnumerable(this, "b");
|
|
||||||
verifyWritable(this, "b");
|
|
||||||
verifyConfigurable(this, "b");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const c = new C();
|
|
@ -1,37 +0,0 @@
|
|||||||
// This file was procedurally generated from the following sources:
|
|
||||||
// - src/class-fields/computed-name-zero-initializer-var-computed-name-empty-function.case
|
|
||||||
// - src/class-fields/default/cls-decl-extends.template
|
|
||||||
/*---
|
|
||||||
description: Computed name var zero initialized, computed name empty function (class fields)
|
|
||||||
flags: [generated]
|
|
||||||
includes: [propertyHelper.js]
|
|
||||||
info: |
|
|
||||||
1.1 New Productions
|
|
||||||
|
|
||||||
[...]
|
|
||||||
|
|
||||||
FieldDefinitionList [Yield, Await]:
|
|
||||||
FieldDefinition [?Yield, ?Await]
|
|
||||||
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
|
|
||||||
|
|
||||||
---*/
|
|
||||||
|
|
||||||
|
|
||||||
class Base {}
|
|
||||||
class C extends Base {
|
|
||||||
['a'] = 0; ['b'](){}
|
|
||||||
|
|
||||||
constructor() {
|
|
||||||
super();
|
|
||||||
assert.sameValue(this.a, 0);
|
|
||||||
verifyEnumerable(this, "a");
|
|
||||||
verifyWritable(this, "a");
|
|
||||||
verifyConfigurable(this, "a");
|
|
||||||
|
|
||||||
assert.sameValue(typeof Object.getPrototypeOf(this).b, "function");
|
|
||||||
verifyNotEnumerable(Object.getPrototypeOf(this), "b");
|
|
||||||
verifyConfigurable(Object.getPrototypeOf(this), "b");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const c = new C();
|
|
@ -1,37 +0,0 @@
|
|||||||
// This file was procedurally generated from the following sources:
|
|
||||||
// - src/class-fields/computed-name-zero-initializer-var-empty-function.case
|
|
||||||
// - src/class-fields/default/cls-decl-extends.template
|
|
||||||
/*---
|
|
||||||
description: Computed name var zero initialized, empty function (class fields)
|
|
||||||
flags: [generated]
|
|
||||||
includes: [propertyHelper.js]
|
|
||||||
info: |
|
|
||||||
1.1 New Productions
|
|
||||||
|
|
||||||
[...]
|
|
||||||
|
|
||||||
FieldDefinitionList [Yield, Await]:
|
|
||||||
FieldDefinition [?Yield, ?Await]
|
|
||||||
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
|
|
||||||
|
|
||||||
---*/
|
|
||||||
|
|
||||||
|
|
||||||
class Base {}
|
|
||||||
class C extends Base {
|
|
||||||
['a'] = 0; b(){}
|
|
||||||
|
|
||||||
constructor() {
|
|
||||||
super();
|
|
||||||
assert.sameValue(this.a, 0);
|
|
||||||
verifyEnumerable(this, "a");
|
|
||||||
verifyWritable(this, "a");
|
|
||||||
verifyConfigurable(this, "a");
|
|
||||||
|
|
||||||
assert.sameValue(typeof Object.getPrototypeOf(this).b, "function");
|
|
||||||
verifyNotEnumerable(Object.getPrototypeOf(this), "b");
|
|
||||||
verifyConfigurable(Object.getPrototypeOf(this), "b");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const c = new C();
|
|
@ -1,38 +0,0 @@
|
|||||||
// This file was procedurally generated from the following sources:
|
|
||||||
// - src/class-fields/computed-name-zero-initializer-var-empty-var.case
|
|
||||||
// - src/class-fields/default/cls-decl-extends.template
|
|
||||||
/*---
|
|
||||||
description: Computed name var zero initialized, empty var (class fields)
|
|
||||||
flags: [generated]
|
|
||||||
includes: [propertyHelper.js]
|
|
||||||
info: |
|
|
||||||
1.1 New Productions
|
|
||||||
|
|
||||||
[...]
|
|
||||||
|
|
||||||
FieldDefinitionList [Yield, Await]:
|
|
||||||
FieldDefinition [?Yield, ?Await]
|
|
||||||
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
|
|
||||||
|
|
||||||
---*/
|
|
||||||
|
|
||||||
|
|
||||||
class Base {}
|
|
||||||
class C extends Base {
|
|
||||||
['a'] = 0; b
|
|
||||||
|
|
||||||
constructor() {
|
|
||||||
super();
|
|
||||||
assert.sameValue(this.a, 0);
|
|
||||||
verifyEnumerable(this, "a");
|
|
||||||
verifyWritable(this, "a");
|
|
||||||
verifyConfigurable(this, "a");
|
|
||||||
|
|
||||||
assert.sameValue(this.b, undefined);
|
|
||||||
verifyEnumerable(this, "b");
|
|
||||||
verifyWritable(this, "b");
|
|
||||||
verifyConfigurable(this, "b");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const c = new C();
|
|
@ -1,37 +0,0 @@
|
|||||||
// This file was procedurally generated from the following sources:
|
|
||||||
// - src/class-fields/computed-name-zero-initializer-var-generator-empty-function.case
|
|
||||||
// - src/class-fields/default/cls-decl-extends.template
|
|
||||||
/*---
|
|
||||||
description: Computed name var zero initialized, generator empty function (class fields)
|
|
||||||
flags: [generated]
|
|
||||||
includes: [propertyHelper.js]
|
|
||||||
info: |
|
|
||||||
1.1 New Productions
|
|
||||||
|
|
||||||
[...]
|
|
||||||
|
|
||||||
FieldDefinitionList [Yield, Await]:
|
|
||||||
FieldDefinition [?Yield, ?Await]
|
|
||||||
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
|
|
||||||
|
|
||||||
---*/
|
|
||||||
|
|
||||||
|
|
||||||
class Base {}
|
|
||||||
class C extends Base {
|
|
||||||
['a'] = 0; *b(){}
|
|
||||||
|
|
||||||
constructor() {
|
|
||||||
super();
|
|
||||||
assert.sameValue(this.a, 0);
|
|
||||||
verifyEnumerable(this, "a");
|
|
||||||
verifyWritable(this, "a");
|
|
||||||
verifyConfigurable(this, "a");
|
|
||||||
|
|
||||||
assert.sameValue(typeof Object.getPrototypeOf(this).b, "function");
|
|
||||||
verifyNotEnumerable(Object.getPrototypeOf(this), "b");
|
|
||||||
verifyConfigurable(Object.getPrototypeOf(this), "b");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const c = new C();
|
|
@ -1,33 +0,0 @@
|
|||||||
// This file was procedurally generated from the following sources:
|
|
||||||
// - src/class-fields/computed-name-zero-initializer-var-new-line-asi.case
|
|
||||||
// - src/class-fields/default/cls-decl-extends.template
|
|
||||||
/*---
|
|
||||||
description: computed name zero initialized var and newline (ASI) (class fields)
|
|
||||||
flags: [generated]
|
|
||||||
includes: [propertyHelper.js]
|
|
||||||
info: |
|
|
||||||
1.1 New Productions
|
|
||||||
|
|
||||||
[...]
|
|
||||||
|
|
||||||
FieldDefinitionList [Yield, Await]:
|
|
||||||
FieldDefinition [?Yield, ?Await]
|
|
||||||
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
|
|
||||||
|
|
||||||
---*/
|
|
||||||
|
|
||||||
|
|
||||||
class Base {}
|
|
||||||
class C extends Base {
|
|
||||||
['a'] = 0
|
|
||||||
|
|
||||||
constructor() {
|
|
||||||
super();
|
|
||||||
assert.sameValue(this.a, 0);
|
|
||||||
verifyEnumerable(this, "a");
|
|
||||||
verifyWritable(this, "a");
|
|
||||||
verifyConfigurable(this, "a");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const c = new C();
|
|
@ -1,33 +0,0 @@
|
|||||||
// This file was procedurally generated from the following sources:
|
|
||||||
// - src/class-fields/computed-name-zero-initializer-var.case
|
|
||||||
// - src/class-fields/default/cls-decl-extends.template
|
|
||||||
/*---
|
|
||||||
description: Computed name var zero initialized (class fields)
|
|
||||||
flags: [generated]
|
|
||||||
includes: [propertyHelper.js]
|
|
||||||
info: |
|
|
||||||
1.1 New Productions
|
|
||||||
|
|
||||||
[...]
|
|
||||||
|
|
||||||
FieldDefinitionList [Yield, Await]:
|
|
||||||
FieldDefinition [?Yield, ?Await]
|
|
||||||
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
|
|
||||||
|
|
||||||
---*/
|
|
||||||
|
|
||||||
|
|
||||||
class Base {}
|
|
||||||
class C extends Base {
|
|
||||||
['a'] = 0;
|
|
||||||
|
|
||||||
constructor() {
|
|
||||||
super();
|
|
||||||
assert.sameValue(this.a, 0);
|
|
||||||
verifyEnumerable(this, "a");
|
|
||||||
verifyWritable(this, "a");
|
|
||||||
verifyConfigurable(this, "a");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const c = new C();
|
|
@ -1,38 +0,0 @@
|
|||||||
// This file was procedurally generated from the following sources:
|
|
||||||
// - src/class-fields/double-empty-var.case
|
|
||||||
// - src/class-fields/default/cls-decl-extends.template
|
|
||||||
/*---
|
|
||||||
description: Empty var, empty var (class fields)
|
|
||||||
flags: [generated]
|
|
||||||
includes: [propertyHelper.js]
|
|
||||||
info: |
|
|
||||||
1.1 New Productions
|
|
||||||
|
|
||||||
[...]
|
|
||||||
|
|
||||||
FieldDefinitionList [Yield, Await]:
|
|
||||||
FieldDefinition [?Yield, ?Await]
|
|
||||||
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
|
|
||||||
|
|
||||||
---*/
|
|
||||||
|
|
||||||
|
|
||||||
class Base {}
|
|
||||||
class C extends Base {
|
|
||||||
a; b;
|
|
||||||
|
|
||||||
constructor() {
|
|
||||||
super();
|
|
||||||
assert.sameValue(this.a, undefined);
|
|
||||||
verifyEnumerable(this, "a");
|
|
||||||
verifyWritable(this, "a");
|
|
||||||
verifyConfigurable(this, "a");
|
|
||||||
|
|
||||||
assert.sameValue(this.b, undefined);
|
|
||||||
verifyEnumerable(this, "b");
|
|
||||||
verifyWritable(this, "b");
|
|
||||||
verifyConfigurable(this, "b");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const c = new C();
|
|
@ -1,33 +0,0 @@
|
|||||||
// This file was procedurally generated from the following sources:
|
|
||||||
// - src/class-fields/empty-string-var.case
|
|
||||||
// - src/class-fields/default/cls-decl-extends.template
|
|
||||||
/*---
|
|
||||||
description: Empty string var (class fields)
|
|
||||||
flags: [generated]
|
|
||||||
includes: [propertyHelper.js]
|
|
||||||
info: |
|
|
||||||
1.1 New Productions
|
|
||||||
|
|
||||||
[...]
|
|
||||||
|
|
||||||
FieldDefinitionList [Yield, Await]:
|
|
||||||
FieldDefinition [?Yield, ?Await]
|
|
||||||
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
|
|
||||||
|
|
||||||
---*/
|
|
||||||
|
|
||||||
|
|
||||||
class Base {}
|
|
||||||
class C extends Base {
|
|
||||||
'a';
|
|
||||||
|
|
||||||
constructor() {
|
|
||||||
super();
|
|
||||||
assert.sameValue(this.a, undefined);
|
|
||||||
verifyEnumerable(this, "a");
|
|
||||||
verifyWritable(this, "a");
|
|
||||||
verifyConfigurable(this, "a");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const c = new C();
|
|
@ -1,37 +0,0 @@
|
|||||||
// This file was procedurally generated from the following sources:
|
|
||||||
// - src/class-fields/empty-var-computed-name-empty-function.case
|
|
||||||
// - src/class-fields/default/cls-decl-extends.template
|
|
||||||
/*---
|
|
||||||
description: empty var, computed name empty function (class fields)
|
|
||||||
flags: [generated]
|
|
||||||
includes: [propertyHelper.js]
|
|
||||||
info: |
|
|
||||||
1.1 New Productions
|
|
||||||
|
|
||||||
[...]
|
|
||||||
|
|
||||||
FieldDefinitionList [Yield, Await]:
|
|
||||||
FieldDefinition [?Yield, ?Await]
|
|
||||||
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
|
|
||||||
|
|
||||||
---*/
|
|
||||||
|
|
||||||
|
|
||||||
class Base {}
|
|
||||||
class C extends Base {
|
|
||||||
a; ['b'](){}
|
|
||||||
|
|
||||||
constructor() {
|
|
||||||
super();
|
|
||||||
assert.sameValue(this.a, undefined);
|
|
||||||
verifyEnumerable(this, "a");
|
|
||||||
verifyWritable(this, "a");
|
|
||||||
verifyConfigurable(this, "a");
|
|
||||||
|
|
||||||
assert.sameValue(typeof Object.getPrototypeOf(this).b, "function");
|
|
||||||
verifyNotEnumerable(Object.getPrototypeOf(this), "b");
|
|
||||||
verifyConfigurable(Object.getPrototypeOf(this), "b");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const c = new C();
|
|
@ -1,37 +0,0 @@
|
|||||||
// This file was procedurally generated from the following sources:
|
|
||||||
// - src/class-fields/empty-var-empty-function.case
|
|
||||||
// - src/class-fields/default/cls-decl-extends.template
|
|
||||||
/*---
|
|
||||||
description: Empty var, empty function (class fields)
|
|
||||||
flags: [generated]
|
|
||||||
includes: [propertyHelper.js]
|
|
||||||
info: |
|
|
||||||
1.1 New Productions
|
|
||||||
|
|
||||||
[...]
|
|
||||||
|
|
||||||
FieldDefinitionList [Yield, Await]:
|
|
||||||
FieldDefinition [?Yield, ?Await]
|
|
||||||
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
|
|
||||||
|
|
||||||
---*/
|
|
||||||
|
|
||||||
|
|
||||||
class Base {}
|
|
||||||
class C extends Base {
|
|
||||||
a; b(){}
|
|
||||||
|
|
||||||
constructor() {
|
|
||||||
super();
|
|
||||||
assert.sameValue(this.a, undefined);
|
|
||||||
verifyEnumerable(this, "a");
|
|
||||||
verifyWritable(this, "a");
|
|
||||||
verifyConfigurable(this, "a");
|
|
||||||
|
|
||||||
assert.sameValue(typeof Object.getPrototypeOf(this).b, "function");
|
|
||||||
verifyNotEnumerable(Object.getPrototypeOf(this), "b");
|
|
||||||
verifyConfigurable(Object.getPrototypeOf(this), "b");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const c = new C();
|
|
@ -1,37 +0,0 @@
|
|||||||
// This file was procedurally generated from the following sources:
|
|
||||||
// - src/class-fields/empty-var-generator-empty-function.case
|
|
||||||
// - src/class-fields/default/cls-decl-extends.template
|
|
||||||
/*---
|
|
||||||
description: Empty var, generator empty function (class fields)
|
|
||||||
flags: [generated]
|
|
||||||
includes: [propertyHelper.js]
|
|
||||||
info: |
|
|
||||||
1.1 New Productions
|
|
||||||
|
|
||||||
[...]
|
|
||||||
|
|
||||||
FieldDefinitionList [Yield, Await]:
|
|
||||||
FieldDefinition [?Yield, ?Await]
|
|
||||||
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
|
|
||||||
|
|
||||||
---*/
|
|
||||||
|
|
||||||
|
|
||||||
class Base {}
|
|
||||||
class C extends Base {
|
|
||||||
a; *b(){}
|
|
||||||
|
|
||||||
constructor() {
|
|
||||||
super();
|
|
||||||
assert.sameValue(this.a, undefined);
|
|
||||||
verifyEnumerable(this, "a");
|
|
||||||
verifyWritable(this, "a");
|
|
||||||
verifyConfigurable(this, "a");
|
|
||||||
|
|
||||||
assert.sameValue(typeof Object.getPrototypeOf(this).b, "function");
|
|
||||||
verifyNotEnumerable(Object.getPrototypeOf(this), "b");
|
|
||||||
verifyConfigurable(Object.getPrototypeOf(this), "b");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const c = new C();
|
|
@ -1,33 +0,0 @@
|
|||||||
// This file was procedurally generated from the following sources:
|
|
||||||
// - src/class-fields/empty-var-new-line-asi.case
|
|
||||||
// - src/class-fields/default/cls-decl-extends.template
|
|
||||||
/*---
|
|
||||||
description: empty var and newline (ASI) (class fields)
|
|
||||||
flags: [generated]
|
|
||||||
includes: [propertyHelper.js]
|
|
||||||
info: |
|
|
||||||
1.1 New Productions
|
|
||||||
|
|
||||||
[...]
|
|
||||||
|
|
||||||
FieldDefinitionList [Yield, Await]:
|
|
||||||
FieldDefinition [?Yield, ?Await]
|
|
||||||
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
|
|
||||||
|
|
||||||
---*/
|
|
||||||
|
|
||||||
|
|
||||||
class Base {}
|
|
||||||
class C extends Base {
|
|
||||||
a
|
|
||||||
|
|
||||||
constructor() {
|
|
||||||
super();
|
|
||||||
assert.sameValue(this.a, undefined);
|
|
||||||
verifyEnumerable(this, "a");
|
|
||||||
verifyWritable(this, "a");
|
|
||||||
verifyConfigurable(this, "a");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const c = new C();
|
|
@ -1,37 +0,0 @@
|
|||||||
// This file was procedurally generated from the following sources:
|
|
||||||
// - src/class-fields/empty-var-new-line-computed-name-function-asi.case
|
|
||||||
// - src/class-fields/default/cls-decl-extends.template
|
|
||||||
/*---
|
|
||||||
description: empty var and newline, computed name empty function (ASI) (class fields)
|
|
||||||
flags: [generated]
|
|
||||||
includes: [propertyHelper.js]
|
|
||||||
info: |
|
|
||||||
1.1 New Productions
|
|
||||||
|
|
||||||
[...]
|
|
||||||
|
|
||||||
FieldDefinitionList [Yield, Await]:
|
|
||||||
FieldDefinition [?Yield, ?Await]
|
|
||||||
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
|
|
||||||
|
|
||||||
---*/
|
|
||||||
|
|
||||||
|
|
||||||
class Base {}
|
|
||||||
class C extends Base {
|
|
||||||
a
|
|
||||||
['b'](){}
|
|
||||||
constructor() {
|
|
||||||
super();
|
|
||||||
assert.sameValue(this.a, undefined);
|
|
||||||
verifyEnumerable(this, "a");
|
|
||||||
verifyWritable(this, "a");
|
|
||||||
verifyConfigurable(this, "a");
|
|
||||||
|
|
||||||
assert.sameValue(typeof Object.getPrototypeOf(this).b, "function");
|
|
||||||
verifyNotEnumerable(Object.getPrototypeOf(this), "b");
|
|
||||||
verifyConfigurable(Object.getPrototypeOf(this), "b");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const c = new C();
|
|
@ -1,37 +0,0 @@
|
|||||||
// This file was procedurally generated from the following sources:
|
|
||||||
// - src/class-fields/empty-var-new-line-empty-function-asi.case
|
|
||||||
// - src/class-fields/default/cls-decl-extends.template
|
|
||||||
/*---
|
|
||||||
description: empty var and newline, empty function (ASI) (class fields)
|
|
||||||
flags: [generated]
|
|
||||||
includes: [propertyHelper.js]
|
|
||||||
info: |
|
|
||||||
1.1 New Productions
|
|
||||||
|
|
||||||
[...]
|
|
||||||
|
|
||||||
FieldDefinitionList [Yield, Await]:
|
|
||||||
FieldDefinition [?Yield, ?Await]
|
|
||||||
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
|
|
||||||
|
|
||||||
---*/
|
|
||||||
|
|
||||||
|
|
||||||
class Base {}
|
|
||||||
class C extends Base {
|
|
||||||
a
|
|
||||||
b(){}
|
|
||||||
constructor() {
|
|
||||||
super();
|
|
||||||
assert.sameValue(this.a, undefined);
|
|
||||||
verifyEnumerable(this, "a");
|
|
||||||
verifyWritable(this, "a");
|
|
||||||
verifyConfigurable(this, "a");
|
|
||||||
|
|
||||||
assert.sameValue(typeof Object.getPrototypeOf(this).b, "function");
|
|
||||||
verifyNotEnumerable(Object.getPrototypeOf(this), "b");
|
|
||||||
verifyConfigurable(Object.getPrototypeOf(this), "b");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const c = new C();
|
|
@ -1,39 +0,0 @@
|
|||||||
// This file was procedurally generated from the following sources:
|
|
||||||
// - src/class-fields/empty-var-new-line-empty-var-new-line-asi.case
|
|
||||||
// - src/class-fields/default/cls-decl-extends.template
|
|
||||||
/*---
|
|
||||||
description: empty var and newline, empty var and newline (ASI) (class fields)
|
|
||||||
flags: [generated]
|
|
||||||
includes: [propertyHelper.js]
|
|
||||||
info: |
|
|
||||||
1.1 New Productions
|
|
||||||
|
|
||||||
[...]
|
|
||||||
|
|
||||||
FieldDefinitionList [Yield, Await]:
|
|
||||||
FieldDefinition [?Yield, ?Await]
|
|
||||||
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
|
|
||||||
|
|
||||||
---*/
|
|
||||||
|
|
||||||
|
|
||||||
class Base {}
|
|
||||||
class C extends Base {
|
|
||||||
a
|
|
||||||
b
|
|
||||||
|
|
||||||
constructor() {
|
|
||||||
super();
|
|
||||||
assert.sameValue(this.a, undefined);
|
|
||||||
verifyEnumerable(this, "a");
|
|
||||||
verifyWritable(this, "a");
|
|
||||||
verifyConfigurable(this, "a");
|
|
||||||
|
|
||||||
assert.sameValue(this.b, undefined);
|
|
||||||
verifyEnumerable(this, "b");
|
|
||||||
verifyWritable(this, "b");
|
|
||||||
verifyConfigurable(this, "b");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const c = new C();
|
|
@ -1,37 +0,0 @@
|
|||||||
// This file was procedurally generated from the following sources:
|
|
||||||
// - src/class-fields/empty-var-new-line-generator-empty-function-asi.case
|
|
||||||
// - src/class-fields/default/cls-decl-extends.template
|
|
||||||
/*---
|
|
||||||
description: empty var and newline, generator empty function (ASI) (class fields)
|
|
||||||
flags: [generated]
|
|
||||||
includes: [propertyHelper.js]
|
|
||||||
info: |
|
|
||||||
1.1 New Productions
|
|
||||||
|
|
||||||
[...]
|
|
||||||
|
|
||||||
FieldDefinitionList [Yield, Await]:
|
|
||||||
FieldDefinition [?Yield, ?Await]
|
|
||||||
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
|
|
||||||
|
|
||||||
---*/
|
|
||||||
|
|
||||||
|
|
||||||
class Base {}
|
|
||||||
class C extends Base {
|
|
||||||
a
|
|
||||||
*b(){}
|
|
||||||
constructor() {
|
|
||||||
super();
|
|
||||||
assert.sameValue(this.a, undefined);
|
|
||||||
verifyEnumerable(this, "a");
|
|
||||||
verifyWritable(this, "a");
|
|
||||||
verifyConfigurable(this, "a");
|
|
||||||
|
|
||||||
assert.sameValue(typeof Object.getPrototypeOf(this).b, "function");
|
|
||||||
verifyNotEnumerable(Object.getPrototypeOf(this), "b");
|
|
||||||
verifyConfigurable(Object.getPrototypeOf(this), "b");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const c = new C();
|
|
@ -1,33 +0,0 @@
|
|||||||
// This file was procedurally generated from the following sources:
|
|
||||||
// - src/class-fields/empty-var.case
|
|
||||||
// - src/class-fields/default/cls-decl-extends.template
|
|
||||||
/*---
|
|
||||||
description: Empty var (class fields)
|
|
||||||
flags: [generated]
|
|
||||||
includes: [propertyHelper.js]
|
|
||||||
info: |
|
|
||||||
1.1 New Productions
|
|
||||||
|
|
||||||
[...]
|
|
||||||
|
|
||||||
FieldDefinitionList [Yield, Await]:
|
|
||||||
FieldDefinition [?Yield, ?Await]
|
|
||||||
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
|
|
||||||
|
|
||||||
---*/
|
|
||||||
|
|
||||||
|
|
||||||
class Base {}
|
|
||||||
class C extends Base {
|
|
||||||
a;
|
|
||||||
|
|
||||||
constructor() {
|
|
||||||
super();
|
|
||||||
assert.sameValue(this.a, undefined);
|
|
||||||
verifyEnumerable(this, "a");
|
|
||||||
verifyWritable(this, "a");
|
|
||||||
verifyConfigurable(this, "a");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const c = new C();
|
|
@ -1,33 +0,0 @@
|
|||||||
// This file was procedurally generated from the following sources:
|
|
||||||
// - src/class-fields/string-zero-initializer-var.case
|
|
||||||
// - src/class-fields/default/cls-decl-extends.template
|
|
||||||
/*---
|
|
||||||
description: string var zero initializer (class fields)
|
|
||||||
flags: [generated]
|
|
||||||
includes: [propertyHelper.js]
|
|
||||||
info: |
|
|
||||||
1.1 New Productions
|
|
||||||
|
|
||||||
[...]
|
|
||||||
|
|
||||||
FieldDefinitionList [Yield, Await]:
|
|
||||||
FieldDefinition [?Yield, ?Await]
|
|
||||||
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
|
|
||||||
|
|
||||||
---*/
|
|
||||||
|
|
||||||
|
|
||||||
class Base {}
|
|
||||||
class C extends Base {
|
|
||||||
'a' = 0;
|
|
||||||
|
|
||||||
constructor() {
|
|
||||||
super();
|
|
||||||
assert.sameValue(this.a, 0);
|
|
||||||
verifyEnumerable(this, "a");
|
|
||||||
verifyWritable(this, "a");
|
|
||||||
verifyConfigurable(this, "a");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const c = new C();
|
|
@ -1,33 +0,0 @@
|
|||||||
// This file was procedurally generated from the following sources:
|
|
||||||
// - src/class-fields/undefined-initializer-var.case
|
|
||||||
// - src/class-fields/default/cls-decl-extends.template
|
|
||||||
/*---
|
|
||||||
description: Empty var (class fields)
|
|
||||||
flags: [generated]
|
|
||||||
includes: [propertyHelper.js]
|
|
||||||
info: |
|
|
||||||
1.1 New Productions
|
|
||||||
|
|
||||||
[...]
|
|
||||||
|
|
||||||
FieldDefinitionList [Yield, Await]:
|
|
||||||
FieldDefinition [?Yield, ?Await]
|
|
||||||
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
|
|
||||||
|
|
||||||
---*/
|
|
||||||
|
|
||||||
|
|
||||||
class Base {}
|
|
||||||
class C extends Base {
|
|
||||||
a = undefined;
|
|
||||||
|
|
||||||
constructor() {
|
|
||||||
super();
|
|
||||||
assert.sameValue(this.a, undefined);
|
|
||||||
verifyEnumerable(this, "a");
|
|
||||||
verifyWritable(this, "a");
|
|
||||||
verifyConfigurable(this, "a");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const c = new C();
|
|
@ -1,33 +0,0 @@
|
|||||||
// This file was procedurally generated from the following sources:
|
|
||||||
// - src/class-fields/yield-var.case
|
|
||||||
// - src/class-fields/default/cls-decl-extends.template
|
|
||||||
/*---
|
|
||||||
description: yield var (class fields)
|
|
||||||
flags: [generated]
|
|
||||||
includes: [propertyHelper.js]
|
|
||||||
info: |
|
|
||||||
1.1 New Productions
|
|
||||||
|
|
||||||
[...]
|
|
||||||
|
|
||||||
FieldDefinitionList [Yield, Await]:
|
|
||||||
FieldDefinition [?Yield, ?Await]
|
|
||||||
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
|
|
||||||
|
|
||||||
---*/
|
|
||||||
|
|
||||||
|
|
||||||
class Base {}
|
|
||||||
class C extends Base {
|
|
||||||
yield
|
|
||||||
|
|
||||||
constructor() {
|
|
||||||
super();
|
|
||||||
assert.sameValue(this.yield, undefined);
|
|
||||||
verifyEnumerable(this, "yield");
|
|
||||||
verifyWritable(this, "yield");
|
|
||||||
verifyConfigurable(this, "yield");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const c = new C();
|
|
@ -1,33 +0,0 @@
|
|||||||
// This file was procedurally generated from the following sources:
|
|
||||||
// - src/class-fields/yield-zero-initializer-var.case
|
|
||||||
// - src/class-fields/default/cls-decl-extends.template
|
|
||||||
/*---
|
|
||||||
description: yield var zero initialized (class fields)
|
|
||||||
flags: [generated]
|
|
||||||
includes: [propertyHelper.js]
|
|
||||||
info: |
|
|
||||||
1.1 New Productions
|
|
||||||
|
|
||||||
[...]
|
|
||||||
|
|
||||||
FieldDefinitionList [Yield, Await]:
|
|
||||||
FieldDefinition [?Yield, ?Await]
|
|
||||||
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
|
|
||||||
|
|
||||||
---*/
|
|
||||||
|
|
||||||
|
|
||||||
class Base {}
|
|
||||||
class C extends Base {
|
|
||||||
yield = 0
|
|
||||||
|
|
||||||
constructor() {
|
|
||||||
super();
|
|
||||||
assert.sameValue(this.yield, 0);
|
|
||||||
verifyEnumerable(this, "yield");
|
|
||||||
verifyWritable(this, "yield");
|
|
||||||
verifyConfigurable(this, "yield");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const c = new C();
|
|
@ -1,33 +0,0 @@
|
|||||||
// This file was procedurally generated from the following sources:
|
|
||||||
// - src/class-fields/zero-empty-var.case
|
|
||||||
// - src/class-fields/default/cls-decl-extends.template
|
|
||||||
/*---
|
|
||||||
description: zero var (class fields)
|
|
||||||
flags: [generated]
|
|
||||||
includes: [propertyHelper.js]
|
|
||||||
info: |
|
|
||||||
1.1 New Productions
|
|
||||||
|
|
||||||
[...]
|
|
||||||
|
|
||||||
FieldDefinitionList [Yield, Await]:
|
|
||||||
FieldDefinition [?Yield, ?Await]
|
|
||||||
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
|
|
||||||
|
|
||||||
---*/
|
|
||||||
|
|
||||||
|
|
||||||
class Base {}
|
|
||||||
class C extends Base {
|
|
||||||
0;
|
|
||||||
|
|
||||||
constructor() {
|
|
||||||
super();
|
|
||||||
assert.sameValue(this["0"], undefined);
|
|
||||||
verifyEnumerable(this, "0");
|
|
||||||
verifyWritable(this, "0");
|
|
||||||
verifyConfigurable(this, "0");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const c = new C();
|
|
@ -1,37 +0,0 @@
|
|||||||
// This file was procedurally generated from the following sources:
|
|
||||||
// - src/class-fields/zero-initializer-var-computed-name-empty-function.case
|
|
||||||
// - src/class-fields/default/cls-decl-extends.template
|
|
||||||
/*---
|
|
||||||
description: zero initialized var, computed name empty function (class fields)
|
|
||||||
flags: [generated]
|
|
||||||
includes: [propertyHelper.js]
|
|
||||||
info: |
|
|
||||||
1.1 New Productions
|
|
||||||
|
|
||||||
[...]
|
|
||||||
|
|
||||||
FieldDefinitionList [Yield, Await]:
|
|
||||||
FieldDefinition [?Yield, ?Await]
|
|
||||||
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
|
|
||||||
|
|
||||||
---*/
|
|
||||||
|
|
||||||
|
|
||||||
class Base {}
|
|
||||||
class C extends Base {
|
|
||||||
a = 0; ['b'](){}
|
|
||||||
|
|
||||||
constructor() {
|
|
||||||
super();
|
|
||||||
assert.sameValue(this.a, 0);
|
|
||||||
verifyEnumerable(this, "a");
|
|
||||||
verifyWritable(this, "a");
|
|
||||||
verifyConfigurable(this, "a");
|
|
||||||
|
|
||||||
assert.sameValue(typeof Object.getPrototypeOf(this).b, "function");
|
|
||||||
verifyNotEnumerable(Object.getPrototypeOf(this), "b");
|
|
||||||
verifyConfigurable(Object.getPrototypeOf(this), "b");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const c = new C();
|
|
@ -1,37 +0,0 @@
|
|||||||
// This file was procedurally generated from the following sources:
|
|
||||||
// - src/class-fields/zero-initializer-var-empty-function.case
|
|
||||||
// - src/class-fields/default/cls-decl-extends.template
|
|
||||||
/*---
|
|
||||||
description: zero initialized var, empty function (class fields)
|
|
||||||
flags: [generated]
|
|
||||||
includes: [propertyHelper.js]
|
|
||||||
info: |
|
|
||||||
1.1 New Productions
|
|
||||||
|
|
||||||
[...]
|
|
||||||
|
|
||||||
FieldDefinitionList [Yield, Await]:
|
|
||||||
FieldDefinition [?Yield, ?Await]
|
|
||||||
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
|
|
||||||
|
|
||||||
---*/
|
|
||||||
|
|
||||||
|
|
||||||
class Base {}
|
|
||||||
class C extends Base {
|
|
||||||
a = 0; b(){}
|
|
||||||
|
|
||||||
constructor() {
|
|
||||||
super();
|
|
||||||
assert.sameValue(this.a, 0);
|
|
||||||
verifyEnumerable(this, "a");
|
|
||||||
verifyWritable(this, "a");
|
|
||||||
verifyConfigurable(this, "a");
|
|
||||||
|
|
||||||
assert.sameValue(typeof Object.getPrototypeOf(this).b, "function");
|
|
||||||
verifyNotEnumerable(Object.getPrototypeOf(this), "b");
|
|
||||||
verifyConfigurable(Object.getPrototypeOf(this), "b");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const c = new C();
|
|
@ -1,38 +0,0 @@
|
|||||||
// This file was procedurally generated from the following sources:
|
|
||||||
// - src/class-fields/zero-initializer-var-empty-var.case
|
|
||||||
// - src/class-fields/default/cls-decl-extends.template
|
|
||||||
/*---
|
|
||||||
description: zero initialized var, empty var (class fields)
|
|
||||||
flags: [generated]
|
|
||||||
includes: [propertyHelper.js]
|
|
||||||
info: |
|
|
||||||
1.1 New Productions
|
|
||||||
|
|
||||||
[...]
|
|
||||||
|
|
||||||
FieldDefinitionList [Yield, Await]:
|
|
||||||
FieldDefinition [?Yield, ?Await]
|
|
||||||
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
|
|
||||||
|
|
||||||
---*/
|
|
||||||
|
|
||||||
|
|
||||||
class Base {}
|
|
||||||
class C extends Base {
|
|
||||||
a = 0; b
|
|
||||||
|
|
||||||
constructor() {
|
|
||||||
super();
|
|
||||||
assert.sameValue(this.a, 0);
|
|
||||||
verifyEnumerable(this, "a");
|
|
||||||
verifyWritable(this, "a");
|
|
||||||
verifyConfigurable(this, "a");
|
|
||||||
|
|
||||||
assert.sameValue(this.b, undefined);
|
|
||||||
verifyEnumerable(this, "b");
|
|
||||||
verifyWritable(this, "b");
|
|
||||||
verifyConfigurable(this, "b");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const c = new C();
|
|
@ -1,37 +0,0 @@
|
|||||||
// This file was procedurally generated from the following sources:
|
|
||||||
// - src/class-fields/zero-initializer-var-generator-empty-function.case
|
|
||||||
// - src/class-fields/default/cls-decl-extends.template
|
|
||||||
/*---
|
|
||||||
description: zero initialized var, generator empty function (class fields)
|
|
||||||
flags: [generated]
|
|
||||||
includes: [propertyHelper.js]
|
|
||||||
info: |
|
|
||||||
1.1 New Productions
|
|
||||||
|
|
||||||
[...]
|
|
||||||
|
|
||||||
FieldDefinitionList [Yield, Await]:
|
|
||||||
FieldDefinition [?Yield, ?Await]
|
|
||||||
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
|
|
||||||
|
|
||||||
---*/
|
|
||||||
|
|
||||||
|
|
||||||
class Base {}
|
|
||||||
class C extends Base {
|
|
||||||
a = 0; *b(){}
|
|
||||||
|
|
||||||
constructor() {
|
|
||||||
super();
|
|
||||||
assert.sameValue(this.a, 0);
|
|
||||||
verifyEnumerable(this, "a");
|
|
||||||
verifyWritable(this, "a");
|
|
||||||
verifyConfigurable(this, "a");
|
|
||||||
|
|
||||||
assert.sameValue(typeof Object.getPrototypeOf(this).b, "function");
|
|
||||||
verifyNotEnumerable(Object.getPrototypeOf(this), "b");
|
|
||||||
verifyConfigurable(Object.getPrototypeOf(this), "b");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const c = new C();
|
|
@ -1,33 +0,0 @@
|
|||||||
// This file was procedurally generated from the following sources:
|
|
||||||
// - src/class-fields/zero-initializer-var-new-line-asi.case
|
|
||||||
// - src/class-fields/default/cls-decl-extends.template
|
|
||||||
/*---
|
|
||||||
description: zero initialized var and newline (ASI) (class fields)
|
|
||||||
flags: [generated]
|
|
||||||
includes: [propertyHelper.js]
|
|
||||||
info: |
|
|
||||||
1.1 New Productions
|
|
||||||
|
|
||||||
[...]
|
|
||||||
|
|
||||||
FieldDefinitionList [Yield, Await]:
|
|
||||||
FieldDefinition [?Yield, ?Await]
|
|
||||||
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
|
|
||||||
|
|
||||||
---*/
|
|
||||||
|
|
||||||
|
|
||||||
class Base {}
|
|
||||||
class C extends Base {
|
|
||||||
a = 0
|
|
||||||
|
|
||||||
constructor() {
|
|
||||||
super();
|
|
||||||
assert.sameValue(this.a, 0);
|
|
||||||
verifyEnumerable(this, "a");
|
|
||||||
verifyWritable(this, "a");
|
|
||||||
verifyConfigurable(this, "a");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const c = new C();
|
|
@ -1,38 +0,0 @@
|
|||||||
// This file was procedurally generated from the following sources:
|
|
||||||
// - src/class-fields/zero-initializer-var-new-line-empty-function-asi.case
|
|
||||||
// - src/class-fields/default/cls-decl-extends.template
|
|
||||||
/*---
|
|
||||||
description: zero initialized var and newline, empty function (ASI) (class fields)
|
|
||||||
flags: [generated]
|
|
||||||
includes: [propertyHelper.js]
|
|
||||||
info: |
|
|
||||||
1.1 New Productions
|
|
||||||
|
|
||||||
[...]
|
|
||||||
|
|
||||||
FieldDefinitionList [Yield, Await]:
|
|
||||||
FieldDefinition [?Yield, ?Await]
|
|
||||||
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
|
|
||||||
|
|
||||||
---*/
|
|
||||||
|
|
||||||
|
|
||||||
class Base {}
|
|
||||||
class C extends Base {
|
|
||||||
a = 0
|
|
||||||
b(){}
|
|
||||||
|
|
||||||
constructor() {
|
|
||||||
super();
|
|
||||||
assert.sameValue(this.a, 0);
|
|
||||||
verifyEnumerable(this, "a");
|
|
||||||
verifyWritable(this, "a");
|
|
||||||
verifyConfigurable(this, "a");
|
|
||||||
|
|
||||||
assert.sameValue(typeof Object.getPrototypeOf(this).b, "function");
|
|
||||||
verifyNotEnumerable(Object.getPrototypeOf(this), "b");
|
|
||||||
verifyConfigurable(Object.getPrototypeOf(this), "b");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const c = new C();
|
|
@ -1,39 +0,0 @@
|
|||||||
// This file was procedurally generated from the following sources:
|
|
||||||
// - src/class-fields/zero-initializer-var-new-line-empty-var-asi.case
|
|
||||||
// - src/class-fields/default/cls-decl-extends.template
|
|
||||||
/*---
|
|
||||||
description: zero initialized var and newline, empty var (ASI) (class fields)
|
|
||||||
flags: [generated]
|
|
||||||
includes: [propertyHelper.js]
|
|
||||||
info: |
|
|
||||||
1.1 New Productions
|
|
||||||
|
|
||||||
[...]
|
|
||||||
|
|
||||||
FieldDefinitionList [Yield, Await]:
|
|
||||||
FieldDefinition [?Yield, ?Await]
|
|
||||||
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
|
|
||||||
|
|
||||||
---*/
|
|
||||||
|
|
||||||
|
|
||||||
class Base {}
|
|
||||||
class C extends Base {
|
|
||||||
a = 0
|
|
||||||
b
|
|
||||||
|
|
||||||
constructor() {
|
|
||||||
super();
|
|
||||||
assert.sameValue(this.a, 0);
|
|
||||||
verifyEnumerable(this, "a");
|
|
||||||
verifyWritable(this, "a");
|
|
||||||
verifyConfigurable(this, "a");
|
|
||||||
|
|
||||||
assert.sameValue(this.b, undefined);
|
|
||||||
verifyEnumerable(this, "b");
|
|
||||||
verifyWritable(this, "b");
|
|
||||||
verifyConfigurable(this, "b");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const c = new C();
|
|
@ -1,33 +0,0 @@
|
|||||||
// This file was procedurally generated from the following sources:
|
|
||||||
// - src/class-fields/zero-initializer-var.case
|
|
||||||
// - src/class-fields/default/cls-decl-extends.template
|
|
||||||
/*---
|
|
||||||
description: zero initialized var (class fields)
|
|
||||||
flags: [generated]
|
|
||||||
includes: [propertyHelper.js]
|
|
||||||
info: |
|
|
||||||
1.1 New Productions
|
|
||||||
|
|
||||||
[...]
|
|
||||||
|
|
||||||
FieldDefinitionList [Yield, Await]:
|
|
||||||
FieldDefinition [?Yield, ?Await]
|
|
||||||
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
|
|
||||||
|
|
||||||
---*/
|
|
||||||
|
|
||||||
|
|
||||||
class Base {}
|
|
||||||
class C extends Base {
|
|
||||||
a = 0;
|
|
||||||
|
|
||||||
constructor() {
|
|
||||||
super();
|
|
||||||
assert.sameValue(this.a, 0);
|
|
||||||
verifyEnumerable(this, "a");
|
|
||||||
verifyWritable(this, "a");
|
|
||||||
verifyConfigurable(this, "a");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const c = new C();
|
|
@ -1,33 +0,0 @@
|
|||||||
// This file was procedurally generated from the following sources:
|
|
||||||
// - src/class-fields/zero-zero-initializer-var.case
|
|
||||||
// - src/class-fields/default/cls-decl-extends.template
|
|
||||||
/*---
|
|
||||||
description: zero initialized zero var (class fields)
|
|
||||||
flags: [generated]
|
|
||||||
includes: [propertyHelper.js]
|
|
||||||
info: |
|
|
||||||
1.1 New Productions
|
|
||||||
|
|
||||||
[...]
|
|
||||||
|
|
||||||
FieldDefinitionList [Yield, Await]:
|
|
||||||
FieldDefinition [?Yield, ?Await]
|
|
||||||
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
|
|
||||||
|
|
||||||
---*/
|
|
||||||
|
|
||||||
|
|
||||||
class Base {}
|
|
||||||
class C extends Base {
|
|
||||||
0 = 0;
|
|
||||||
|
|
||||||
constructor() {
|
|
||||||
super();
|
|
||||||
assert.sameValue(this["0"], 0);
|
|
||||||
verifyEnumerable(this, "0");
|
|
||||||
verifyWritable(this, "0");
|
|
||||||
verifyConfigurable(this, "0");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const c = new C();
|
|
@ -1,31 +0,0 @@
|
|||||||
// This file was procedurally generated from the following sources:
|
|
||||||
// - src/class-fields/string-zero-initializer-var.case
|
|
||||||
// - src/class-fields/default/cls-decl.template
|
|
||||||
/*---
|
|
||||||
description: string var zero initializer (class fields)
|
|
||||||
flags: [generated]
|
|
||||||
includes: [propertyHelper.js]
|
|
||||||
info: |
|
|
||||||
1.1 New Productions
|
|
||||||
|
|
||||||
[...]
|
|
||||||
|
|
||||||
FieldDefinitionList [Yield, Await]:
|
|
||||||
FieldDefinition [?Yield, ?Await]
|
|
||||||
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
|
|
||||||
|
|
||||||
---*/
|
|
||||||
|
|
||||||
|
|
||||||
class C {
|
|
||||||
'a' = 0;
|
|
||||||
|
|
||||||
constructor() {
|
|
||||||
assert.sameValue(this.a, 0);
|
|
||||||
verifyEnumerable(this, "a");
|
|
||||||
verifyWritable(this, "a");
|
|
||||||
verifyConfigurable(this, "a");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const c = new C();
|
|
@ -1,31 +0,0 @@
|
|||||||
// This file was procedurally generated from the following sources:
|
|
||||||
// - src/class-fields/undefined-initializer-var.case
|
|
||||||
// - src/class-fields/default/cls-decl.template
|
|
||||||
/*---
|
|
||||||
description: Empty var (class fields)
|
|
||||||
flags: [generated]
|
|
||||||
includes: [propertyHelper.js]
|
|
||||||
info: |
|
|
||||||
1.1 New Productions
|
|
||||||
|
|
||||||
[...]
|
|
||||||
|
|
||||||
FieldDefinitionList [Yield, Await]:
|
|
||||||
FieldDefinition [?Yield, ?Await]
|
|
||||||
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
|
|
||||||
|
|
||||||
---*/
|
|
||||||
|
|
||||||
|
|
||||||
class C {
|
|
||||||
a = undefined;
|
|
||||||
|
|
||||||
constructor() {
|
|
||||||
assert.sameValue(this.a, undefined);
|
|
||||||
verifyEnumerable(this, "a");
|
|
||||||
verifyWritable(this, "a");
|
|
||||||
verifyConfigurable(this, "a");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const c = new C();
|
|
@ -1,31 +0,0 @@
|
|||||||
// This file was procedurally generated from the following sources:
|
|
||||||
// - src/class-fields/yield-var.case
|
|
||||||
// - src/class-fields/default/cls-decl.template
|
|
||||||
/*---
|
|
||||||
description: yield var (class fields)
|
|
||||||
flags: [generated]
|
|
||||||
includes: [propertyHelper.js]
|
|
||||||
info: |
|
|
||||||
1.1 New Productions
|
|
||||||
|
|
||||||
[...]
|
|
||||||
|
|
||||||
FieldDefinitionList [Yield, Await]:
|
|
||||||
FieldDefinition [?Yield, ?Await]
|
|
||||||
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
|
|
||||||
|
|
||||||
---*/
|
|
||||||
|
|
||||||
|
|
||||||
class C {
|
|
||||||
yield
|
|
||||||
|
|
||||||
constructor() {
|
|
||||||
assert.sameValue(this.yield, undefined);
|
|
||||||
verifyEnumerable(this, "yield");
|
|
||||||
verifyWritable(this, "yield");
|
|
||||||
verifyConfigurable(this, "yield");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const c = new C();
|
|
@ -1,31 +0,0 @@
|
|||||||
// This file was procedurally generated from the following sources:
|
|
||||||
// - src/class-fields/yield-zero-initializer-var.case
|
|
||||||
// - src/class-fields/default/cls-decl.template
|
|
||||||
/*---
|
|
||||||
description: yield var zero initialized (class fields)
|
|
||||||
flags: [generated]
|
|
||||||
includes: [propertyHelper.js]
|
|
||||||
info: |
|
|
||||||
1.1 New Productions
|
|
||||||
|
|
||||||
[...]
|
|
||||||
|
|
||||||
FieldDefinitionList [Yield, Await]:
|
|
||||||
FieldDefinition [?Yield, ?Await]
|
|
||||||
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
|
|
||||||
|
|
||||||
---*/
|
|
||||||
|
|
||||||
|
|
||||||
class C {
|
|
||||||
yield = 0
|
|
||||||
|
|
||||||
constructor() {
|
|
||||||
assert.sameValue(this.yield, 0);
|
|
||||||
verifyEnumerable(this, "yield");
|
|
||||||
verifyWritable(this, "yield");
|
|
||||||
verifyConfigurable(this, "yield");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const c = new C();
|
|
@ -1,31 +0,0 @@
|
|||||||
// This file was procedurally generated from the following sources:
|
|
||||||
// - src/class-fields/zero-empty-var.case
|
|
||||||
// - src/class-fields/default/cls-decl.template
|
|
||||||
/*---
|
|
||||||
description: zero var (class fields)
|
|
||||||
flags: [generated]
|
|
||||||
includes: [propertyHelper.js]
|
|
||||||
info: |
|
|
||||||
1.1 New Productions
|
|
||||||
|
|
||||||
[...]
|
|
||||||
|
|
||||||
FieldDefinitionList [Yield, Await]:
|
|
||||||
FieldDefinition [?Yield, ?Await]
|
|
||||||
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
|
|
||||||
|
|
||||||
---*/
|
|
||||||
|
|
||||||
|
|
||||||
class C {
|
|
||||||
0;
|
|
||||||
|
|
||||||
constructor() {
|
|
||||||
assert.sameValue(this["0"], undefined);
|
|
||||||
verifyEnumerable(this, "0");
|
|
||||||
verifyWritable(this, "0");
|
|
||||||
verifyConfigurable(this, "0");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const c = new C();
|
|
@ -1,35 +0,0 @@
|
|||||||
// This file was procedurally generated from the following sources:
|
|
||||||
// - src/class-fields/zero-initializer-var-computed-name-empty-function.case
|
|
||||||
// - src/class-fields/default/cls-decl.template
|
|
||||||
/*---
|
|
||||||
description: zero initialized var, computed name empty function (class fields)
|
|
||||||
flags: [generated]
|
|
||||||
includes: [propertyHelper.js]
|
|
||||||
info: |
|
|
||||||
1.1 New Productions
|
|
||||||
|
|
||||||
[...]
|
|
||||||
|
|
||||||
FieldDefinitionList [Yield, Await]:
|
|
||||||
FieldDefinition [?Yield, ?Await]
|
|
||||||
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
|
|
||||||
|
|
||||||
---*/
|
|
||||||
|
|
||||||
|
|
||||||
class C {
|
|
||||||
a = 0; ['b'](){}
|
|
||||||
|
|
||||||
constructor() {
|
|
||||||
assert.sameValue(this.a, 0);
|
|
||||||
verifyEnumerable(this, "a");
|
|
||||||
verifyWritable(this, "a");
|
|
||||||
verifyConfigurable(this, "a");
|
|
||||||
|
|
||||||
assert.sameValue(typeof Object.getPrototypeOf(this).b, "function");
|
|
||||||
verifyNotEnumerable(Object.getPrototypeOf(this), "b");
|
|
||||||
verifyConfigurable(Object.getPrototypeOf(this), "b");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const c = new C();
|
|
@ -1,35 +0,0 @@
|
|||||||
// This file was procedurally generated from the following sources:
|
|
||||||
// - src/class-fields/zero-initializer-var-empty-function.case
|
|
||||||
// - src/class-fields/default/cls-decl.template
|
|
||||||
/*---
|
|
||||||
description: zero initialized var, empty function (class fields)
|
|
||||||
flags: [generated]
|
|
||||||
includes: [propertyHelper.js]
|
|
||||||
info: |
|
|
||||||
1.1 New Productions
|
|
||||||
|
|
||||||
[...]
|
|
||||||
|
|
||||||
FieldDefinitionList [Yield, Await]:
|
|
||||||
FieldDefinition [?Yield, ?Await]
|
|
||||||
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
|
|
||||||
|
|
||||||
---*/
|
|
||||||
|
|
||||||
|
|
||||||
class C {
|
|
||||||
a = 0; b(){}
|
|
||||||
|
|
||||||
constructor() {
|
|
||||||
assert.sameValue(this.a, 0);
|
|
||||||
verifyEnumerable(this, "a");
|
|
||||||
verifyWritable(this, "a");
|
|
||||||
verifyConfigurable(this, "a");
|
|
||||||
|
|
||||||
assert.sameValue(typeof Object.getPrototypeOf(this).b, "function");
|
|
||||||
verifyNotEnumerable(Object.getPrototypeOf(this), "b");
|
|
||||||
verifyConfigurable(Object.getPrototypeOf(this), "b");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const c = new C();
|
|
@ -1,36 +0,0 @@
|
|||||||
// This file was procedurally generated from the following sources:
|
|
||||||
// - src/class-fields/zero-initializer-var-empty-var.case
|
|
||||||
// - src/class-fields/default/cls-decl.template
|
|
||||||
/*---
|
|
||||||
description: zero initialized var, empty var (class fields)
|
|
||||||
flags: [generated]
|
|
||||||
includes: [propertyHelper.js]
|
|
||||||
info: |
|
|
||||||
1.1 New Productions
|
|
||||||
|
|
||||||
[...]
|
|
||||||
|
|
||||||
FieldDefinitionList [Yield, Await]:
|
|
||||||
FieldDefinition [?Yield, ?Await]
|
|
||||||
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
|
|
||||||
|
|
||||||
---*/
|
|
||||||
|
|
||||||
|
|
||||||
class C {
|
|
||||||
a = 0; b
|
|
||||||
|
|
||||||
constructor() {
|
|
||||||
assert.sameValue(this.a, 0);
|
|
||||||
verifyEnumerable(this, "a");
|
|
||||||
verifyWritable(this, "a");
|
|
||||||
verifyConfigurable(this, "a");
|
|
||||||
|
|
||||||
assert.sameValue(this.b, undefined);
|
|
||||||
verifyEnumerable(this, "b");
|
|
||||||
verifyWritable(this, "b");
|
|
||||||
verifyConfigurable(this, "b");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const c = new C();
|
|
@ -1,35 +0,0 @@
|
|||||||
// This file was procedurally generated from the following sources:
|
|
||||||
// - src/class-fields/zero-initializer-var-generator-empty-function.case
|
|
||||||
// - src/class-fields/default/cls-decl.template
|
|
||||||
/*---
|
|
||||||
description: zero initialized var, generator empty function (class fields)
|
|
||||||
flags: [generated]
|
|
||||||
includes: [propertyHelper.js]
|
|
||||||
info: |
|
|
||||||
1.1 New Productions
|
|
||||||
|
|
||||||
[...]
|
|
||||||
|
|
||||||
FieldDefinitionList [Yield, Await]:
|
|
||||||
FieldDefinition [?Yield, ?Await]
|
|
||||||
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
|
|
||||||
|
|
||||||
---*/
|
|
||||||
|
|
||||||
|
|
||||||
class C {
|
|
||||||
a = 0; *b(){}
|
|
||||||
|
|
||||||
constructor() {
|
|
||||||
assert.sameValue(this.a, 0);
|
|
||||||
verifyEnumerable(this, "a");
|
|
||||||
verifyWritable(this, "a");
|
|
||||||
verifyConfigurable(this, "a");
|
|
||||||
|
|
||||||
assert.sameValue(typeof Object.getPrototypeOf(this).b, "function");
|
|
||||||
verifyNotEnumerable(Object.getPrototypeOf(this), "b");
|
|
||||||
verifyConfigurable(Object.getPrototypeOf(this), "b");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const c = new C();
|
|
@ -1,31 +0,0 @@
|
|||||||
// This file was procedurally generated from the following sources:
|
|
||||||
// - src/class-fields/zero-initializer-var-new-line-asi.case
|
|
||||||
// - src/class-fields/default/cls-decl.template
|
|
||||||
/*---
|
|
||||||
description: zero initialized var and newline (ASI) (class fields)
|
|
||||||
flags: [generated]
|
|
||||||
includes: [propertyHelper.js]
|
|
||||||
info: |
|
|
||||||
1.1 New Productions
|
|
||||||
|
|
||||||
[...]
|
|
||||||
|
|
||||||
FieldDefinitionList [Yield, Await]:
|
|
||||||
FieldDefinition [?Yield, ?Await]
|
|
||||||
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
|
|
||||||
|
|
||||||
---*/
|
|
||||||
|
|
||||||
|
|
||||||
class C {
|
|
||||||
a = 0
|
|
||||||
|
|
||||||
constructor() {
|
|
||||||
assert.sameValue(this.a, 0);
|
|
||||||
verifyEnumerable(this, "a");
|
|
||||||
verifyWritable(this, "a");
|
|
||||||
verifyConfigurable(this, "a");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const c = new C();
|
|
@ -1,36 +0,0 @@
|
|||||||
// This file was procedurally generated from the following sources:
|
|
||||||
// - src/class-fields/zero-initializer-var-new-line-empty-function-asi.case
|
|
||||||
// - src/class-fields/default/cls-decl.template
|
|
||||||
/*---
|
|
||||||
description: zero initialized var and newline, empty function (ASI) (class fields)
|
|
||||||
flags: [generated]
|
|
||||||
includes: [propertyHelper.js]
|
|
||||||
info: |
|
|
||||||
1.1 New Productions
|
|
||||||
|
|
||||||
[...]
|
|
||||||
|
|
||||||
FieldDefinitionList [Yield, Await]:
|
|
||||||
FieldDefinition [?Yield, ?Await]
|
|
||||||
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
|
|
||||||
|
|
||||||
---*/
|
|
||||||
|
|
||||||
|
|
||||||
class C {
|
|
||||||
a = 0
|
|
||||||
b(){}
|
|
||||||
|
|
||||||
constructor() {
|
|
||||||
assert.sameValue(this.a, 0);
|
|
||||||
verifyEnumerable(this, "a");
|
|
||||||
verifyWritable(this, "a");
|
|
||||||
verifyConfigurable(this, "a");
|
|
||||||
|
|
||||||
assert.sameValue(typeof Object.getPrototypeOf(this).b, "function");
|
|
||||||
verifyNotEnumerable(Object.getPrototypeOf(this), "b");
|
|
||||||
verifyConfigurable(Object.getPrototypeOf(this), "b");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const c = new C();
|
|
@ -1,37 +0,0 @@
|
|||||||
// This file was procedurally generated from the following sources:
|
|
||||||
// - src/class-fields/zero-initializer-var-new-line-empty-var-asi.case
|
|
||||||
// - src/class-fields/default/cls-decl.template
|
|
||||||
/*---
|
|
||||||
description: zero initialized var and newline, empty var (ASI) (class fields)
|
|
||||||
flags: [generated]
|
|
||||||
includes: [propertyHelper.js]
|
|
||||||
info: |
|
|
||||||
1.1 New Productions
|
|
||||||
|
|
||||||
[...]
|
|
||||||
|
|
||||||
FieldDefinitionList [Yield, Await]:
|
|
||||||
FieldDefinition [?Yield, ?Await]
|
|
||||||
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
|
|
||||||
|
|
||||||
---*/
|
|
||||||
|
|
||||||
|
|
||||||
class C {
|
|
||||||
a = 0
|
|
||||||
b
|
|
||||||
|
|
||||||
constructor() {
|
|
||||||
assert.sameValue(this.a, 0);
|
|
||||||
verifyEnumerable(this, "a");
|
|
||||||
verifyWritable(this, "a");
|
|
||||||
verifyConfigurable(this, "a");
|
|
||||||
|
|
||||||
assert.sameValue(this.b, undefined);
|
|
||||||
verifyEnumerable(this, "b");
|
|
||||||
verifyWritable(this, "b");
|
|
||||||
verifyConfigurable(this, "b");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const c = new C();
|
|
@ -1,31 +0,0 @@
|
|||||||
// This file was procedurally generated from the following sources:
|
|
||||||
// - src/class-fields/zero-initializer-var.case
|
|
||||||
// - src/class-fields/default/cls-decl.template
|
|
||||||
/*---
|
|
||||||
description: zero initialized var (class fields)
|
|
||||||
flags: [generated]
|
|
||||||
includes: [propertyHelper.js]
|
|
||||||
info: |
|
|
||||||
1.1 New Productions
|
|
||||||
|
|
||||||
[...]
|
|
||||||
|
|
||||||
FieldDefinitionList [Yield, Await]:
|
|
||||||
FieldDefinition [?Yield, ?Await]
|
|
||||||
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
|
|
||||||
|
|
||||||
---*/
|
|
||||||
|
|
||||||
|
|
||||||
class C {
|
|
||||||
a = 0;
|
|
||||||
|
|
||||||
constructor() {
|
|
||||||
assert.sameValue(this.a, 0);
|
|
||||||
verifyEnumerable(this, "a");
|
|
||||||
verifyWritable(this, "a");
|
|
||||||
verifyConfigurable(this, "a");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const c = new C();
|
|
@ -1,31 +0,0 @@
|
|||||||
// This file was procedurally generated from the following sources:
|
|
||||||
// - src/class-fields/zero-zero-initializer-var.case
|
|
||||||
// - src/class-fields/default/cls-decl.template
|
|
||||||
/*---
|
|
||||||
description: zero initialized zero var (class fields)
|
|
||||||
flags: [generated]
|
|
||||||
includes: [propertyHelper.js]
|
|
||||||
info: |
|
|
||||||
1.1 New Productions
|
|
||||||
|
|
||||||
[...]
|
|
||||||
|
|
||||||
FieldDefinitionList [Yield, Await]:
|
|
||||||
FieldDefinition [?Yield, ?Await]
|
|
||||||
FieldDefinitionList [?Yield, ?Await], FieldDefinition [?Yield, ?Await]
|
|
||||||
|
|
||||||
---*/
|
|
||||||
|
|
||||||
|
|
||||||
class C {
|
|
||||||
0 = 0;
|
|
||||||
|
|
||||||
constructor() {
|
|
||||||
assert.sameValue(this["0"], 0);
|
|
||||||
verifyEnumerable(this, "0");
|
|
||||||
verifyWritable(this, "0");
|
|
||||||
verifyConfigurable(this, "0");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const c = new C();
|
|
@ -1,44 +0,0 @@
|
|||||||
// This file was procedurally generated from the following sources:
|
|
||||||
// - src/dstr-assignment-for-await/array-elem-init-let.case
|
|
||||||
// - src/dstr-assignment-for-await/default/async-func-decl.template
|
|
||||||
/*---
|
|
||||||
description: Value retrieval of Initializer obeys `let` semantics. (for-await-of statement in an async function declaration)
|
|
||||||
esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation
|
|
||||||
features: [let, destructuring-binding, async-iteration]
|
|
||||||
flags: [generated, async]
|
|
||||||
info: |
|
|
||||||
IterationStatement :
|
|
||||||
for await ( LeftHandSideExpression of AssignmentExpression ) Statement
|
|
||||||
|
|
||||||
1. Let keyResult be the result of performing ? ForIn/OfHeadEvaluation(« »,
|
|
||||||
AssignmentExpression, iterate).
|
|
||||||
2. Return ? ForIn/OfBodyEvaluation(LeftHandSideExpression, Statement,
|
|
||||||
keyResult, assignment, labelSet).
|
|
||||||
|
|
||||||
13.7.5.13 Runtime Semantics: ForIn/OfBodyEvaluation
|
|
||||||
|
|
||||||
[...]
|
|
||||||
5. If destructuring is true and if lhsKind is assignment, then
|
|
||||||
a. Assert: lhs is a LeftHandSideExpression.
|
|
||||||
b. Let assignmentPattern be the parse of the source text corresponding to
|
|
||||||
lhs using AssignmentPattern as the goal symbol.
|
|
||||||
[...]
|
|
||||||
---*/
|
|
||||||
let x;
|
|
||||||
|
|
||||||
let iterCount = 0;
|
|
||||||
async function fn() {
|
|
||||||
for await ([ x = y ] of [[]]) {
|
|
||||||
|
|
||||||
iterCount += 1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
let promise = fn();
|
|
||||||
|
|
||||||
promise.then(() => $DONE('Promise incorrectly fulfilled.'), ({ constructor }) => {
|
|
||||||
assert.sameValue(constructor, ReferenceError);
|
|
||||||
}).then($DONE, $DONE);
|
|
||||||
|
|
||||||
let y;
|
|
||||||
|
|
@ -1,43 +0,0 @@
|
|||||||
// This file was procedurally generated from the following sources:
|
|
||||||
// - src/dstr-assignment-for-await/array-elem-put-let.case
|
|
||||||
// - src/dstr-assignment-for-await/default/async-func-decl.template
|
|
||||||
/*---
|
|
||||||
description: The assignment target should obey `let` semantics. (for-await-of statement in an async function declaration)
|
|
||||||
esid: sec-for-in-and-for-of-statements-runtime-semantics-labelledevaluation
|
|
||||||
features: [let, destructuring-binding, async-iteration]
|
|
||||||
flags: [generated, async]
|
|
||||||
info: |
|
|
||||||
IterationStatement :
|
|
||||||
for await ( LeftHandSideExpression of AssignmentExpression ) Statement
|
|
||||||
|
|
||||||
1. Let keyResult be the result of performing ? ForIn/OfHeadEvaluation(« »,
|
|
||||||
AssignmentExpression, iterate).
|
|
||||||
2. Return ? ForIn/OfBodyEvaluation(LeftHandSideExpression, Statement,
|
|
||||||
keyResult, assignment, labelSet).
|
|
||||||
|
|
||||||
13.7.5.13 Runtime Semantics: ForIn/OfBodyEvaluation
|
|
||||||
|
|
||||||
[...]
|
|
||||||
5. If destructuring is true and if lhsKind is assignment, then
|
|
||||||
a. Assert: lhs is a LeftHandSideExpression.
|
|
||||||
b. Let assignmentPattern be the parse of the source text corresponding to
|
|
||||||
lhs using AssignmentPattern as the goal symbol.
|
|
||||||
[...]
|
|
||||||
---*/
|
|
||||||
|
|
||||||
let iterCount = 0;
|
|
||||||
async function fn() {
|
|
||||||
for await ([ x ] of [[]]) {
|
|
||||||
|
|
||||||
iterCount += 1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
let promise = fn();
|
|
||||||
|
|
||||||
promise.then(() => $DONE('Promise incorrectly fulfilled.'), ({ constructor }) => {
|
|
||||||
assert.sameValue(iterCount, 0);
|
|
||||||
assert.sameValue(constructor, ReferenceError);
|
|
||||||
}).then($DONE, $DONE);
|
|
||||||
|
|
||||||
let x;
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user