From bd8c91e250690567240e3aa4ade9a740b94b1aee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Bargull?= Date: Wed, 2 Dec 2015 18:07:06 +0100 Subject: 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 --- test/built-ins/RegExp/prototype/Symbol.split/coerce-limit.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/built-ins/RegExp') 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)); -- cgit v1.2.1