Merge pull request #294 from ljharb/promise_method_enumerability

`Promise` methods should not be enumerable
This commit is contained in:
Brian Terlson 2015-06-02 18:56:49 -05:00
commit 5cf31937cc
4 changed files with 56 additions and 0 deletions

View 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');

View 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');

View 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');

View 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');