mirror of
https://github.com/tc39/test262.git
synced 2025-07-27 07:54:41 +02:00
Merge pull request #1572 from rwaldron/super-property-reference
SuperProperty evaluation order
This commit is contained in:
commit
9bddfaea22
@ -0,0 +1,17 @@
|
||||
// Copyright (C) 2018 the V8 project authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
/*---
|
||||
esid: sec-makesuperpropertyreference
|
||||
description: >
|
||||
SuperProperty evaluation order: super() thisBinding initialization must occur first.
|
||||
---*/
|
||||
class Derived extends Object {
|
||||
constructor() {
|
||||
super[super()];
|
||||
throw new Test262Error();
|
||||
}
|
||||
}
|
||||
|
||||
assert.throws(ReferenceError, function() {
|
||||
new Derived();
|
||||
}, '`super[super()]` via `new Derived()` throws a ReferenceError');
|
@ -1,7 +1,7 @@
|
||||
// Copyright (C) 2014 the V8 project authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
/*---
|
||||
es6id: 14.5
|
||||
esid: sec-makesuperpropertyreference
|
||||
description: >
|
||||
class super in constructor
|
||||
---*/
|
||||
|
@ -1,7 +1,7 @@
|
||||
// Copyright (C) 2014 the V8 project authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
/*---
|
||||
es6id: 14.5
|
||||
esid: sec-makesuperpropertyreference
|
||||
description: >
|
||||
class super in getter
|
||||
---*/
|
||||
|
@ -1,7 +1,7 @@
|
||||
// Copyright (C) 2014 the V8 project authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
/*---
|
||||
es6id: 14.5
|
||||
esid: sec-makesuperpropertyreference
|
||||
description: >
|
||||
class super in methods
|
||||
---*/
|
||||
|
@ -1,7 +1,7 @@
|
||||
// Copyright (C) 2014 the V8 project authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
/*---
|
||||
es6id: 14.5
|
||||
esid: sec-makesuperpropertyreference
|
||||
description: >
|
||||
class super in setter
|
||||
---*/
|
||||
|
@ -1,7 +1,7 @@
|
||||
// Copyright (C) 2014 the V8 project authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
/*---
|
||||
es6id: 14.5
|
||||
esid: sec-makesuperpropertyreference
|
||||
description: >
|
||||
class super in static getter
|
||||
---*/
|
||||
|
@ -1,7 +1,7 @@
|
||||
// Copyright (C) 2014 the V8 project authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
/*---
|
||||
es6id: 14.5
|
||||
esid: sec-makesuperpropertyreference
|
||||
description: >
|
||||
class super in static methods
|
||||
---*/
|
||||
|
@ -1,7 +1,7 @@
|
||||
// Copyright (C) 2014 the V8 project authors. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
/*---
|
||||
es6id: 14.5
|
||||
esid: sec-makesuperpropertyreference
|
||||
description: >
|
||||
class super in static setter
|
||||
---*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user