mirror of
https://github.com/tc39/test262.git
synced 2025-04-08 19:35:28 +02:00
Merge pull request #294 from ljharb/promise_method_enumerability
`Promise` methods should not be enumerable
This commit is contained in:
commit
5cf31937cc
14
test/built-ins/Promise/all/S25.4.4.1_A1.3_T1.js
Normal file
14
test/built-ins/Promise/all/S25.4.4.1_A1.3_T1.js
Normal file
@ -0,0 +1,14 @@
|
||||
// Copyright 2015 Jordan Harband. All rights reserved.
|
||||
// See LICENSE for details.
|
||||
|
||||
/*---
|
||||
info: Promise.all is not enumerable
|
||||
es6id: 25.4.4.1_A1.3_T1
|
||||
author: Jordan Harband
|
||||
description: Promise.all should be non-enumerable
|
||||
includes:
|
||||
- propertyHelper.js
|
||||
---*/
|
||||
|
||||
// CHECK#1
|
||||
verifyNotEnumerable(Promise, 'all');
|
14
test/built-ins/Promise/race/S25.4.4.3_A1.2_T1.js
Normal file
14
test/built-ins/Promise/race/S25.4.4.3_A1.2_T1.js
Normal file
@ -0,0 +1,14 @@
|
||||
// Copyright 2015 Jordan Harband. All rights reserved.
|
||||
// See LICENSE for details.
|
||||
|
||||
/*---
|
||||
info: Promise.race is not enumerable
|
||||
es6id: 25.4.4.3_A1.2_T1
|
||||
author: Jordan Harband
|
||||
description: Promise.race should be non-enumerable
|
||||
includes:
|
||||
- propertyHelper.js
|
||||
---*/
|
||||
|
||||
// CHECK#1
|
||||
verifyNotEnumerable(Promise, 'race');
|
14
test/built-ins/Promise/reject/S25.4.4.4_A1.2_T1.js
Normal file
14
test/built-ins/Promise/reject/S25.4.4.4_A1.2_T1.js
Normal file
@ -0,0 +1,14 @@
|
||||
// Copyright 2015 Jordan Harband. All rights reserved.
|
||||
// See LICENSE for details.
|
||||
|
||||
/*---
|
||||
info: Promise.reject is not enumerable
|
||||
es6id: 25.4.4.4_A1.2_T1
|
||||
author: Jordan Harband
|
||||
description: Promise.reject should be non-enumerable
|
||||
includes:
|
||||
- propertyHelper.js
|
||||
---*/
|
||||
|
||||
// CHECK#1
|
||||
verifyNotEnumerable(Promise, 'reject');
|
14
test/built-ins/Promise/resolve/S25.4.4.5_A1.2_T1.js
Normal file
14
test/built-ins/Promise/resolve/S25.4.4.5_A1.2_T1.js
Normal file
@ -0,0 +1,14 @@
|
||||
// Copyright 2015 Jordan Harband. All rights reserved.
|
||||
// See LICENSE for details.
|
||||
|
||||
/*---
|
||||
info: Promise.resolve is not enumerable
|
||||
es6id: 25.4.4.5_A1.2_T1
|
||||
author: Jordan Harband
|
||||
description: Promise.resolve should be non-enumerable
|
||||
includes:
|
||||
- propertyHelper.js
|
||||
---*/
|
||||
|
||||
// CHECK#1
|
||||
verifyNotEnumerable(Promise, 'resolve');
|
Loading…
x
Reference in New Issue
Block a user