diff options
author | André Bargull <andre.bargull@gmail.com> | 2015-12-02 18:07:06 +0100 |
---|---|---|
committer | André Bargull <andre.bargull@gmail.com> | 2015-12-02 18:07:06 +0100 |
commit | bd8c91e250690567240e3aa4ade9a740b94b1aee (patch) | |
tree | 549a6883b7fc31a57b4bc5cc198d6f31852a8f15 /test/built-ins/RegExp | |
parent | fd44cd73dfbce0b515a2474b7cd505d6176a9eb5 (diff) | |
download | qtdeclarative-testsuites-bd8c91e250690567240e3aa4ade9a740b94b1aee.tar.gz |
Updates for ES2016 Draft 2015-12-01
- RegExp.prototype[Symbol.split] calls ToUint32 (https://github.com/tc39/ecma262/issues/92)
- Species lookup removed from Promise.all and Promise.race (https://github.com/tc39/ecma262/issues/151)
- Generator functions are no longer constructors (https://github.com/tc39/ecma262/pull/171)
Fixes #444
Diffstat (limited to 'test/built-ins/RegExp')
-rw-r--r-- | test/built-ins/RegExp/prototype/Symbol.split/coerce-limit.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/built-ins/RegExp/prototype/Symbol.split/coerce-limit.js b/test/built-ins/RegExp/prototype/Symbol.split/coerce-limit.js index db9236ecc..768682711 100644 --- a/test/built-ins/RegExp/prototype/Symbol.split/coerce-limit.js +++ b/test/built-ins/RegExp/prototype/Symbol.split/coerce-limit.js @@ -6,17 +6,17 @@ es6id: 21.2.5.11 description: Length coercion of `limit` argument info: > [...] - 17. If limit is undefined, let lim be 253–1; else let lim be - ToLength(limit). + 17. If limit is undefined, let lim be 2^32-1; else let lim be ? ToUint32(limit). [...] features: [Symbol.split] ---*/ var result; +// ToUint32(-23) = 4294967273 result = /./[Symbol.split]('abc', -23); assert(Array.isArray(result)); -assert.sameValue(result.length, 0); +assert.sameValue(result.length, 4); result = /./[Symbol.split]('abc', 1.9); assert(Array.isArray(result)); |