v8/src/js
littledan 5c1ef6ac82 Make RegExp use ToLength on lastIndex when flag is turned on
In the ES2015 spec, RegExp uses ToLength, not ToInteger, on lastIndex
to coerce it to an integer. This patch switches to ToLength when
the --harmony-tolength flag is on, and adds some tests to verify the
new behavior.

BUG=v8:4244
LOG=Y
R=adamk

Review URL: https://codereview.chromium.org/1394023005

Cr-Commit-Position: refs/heads/master@{#31306}
2015-10-15 14:10:48 +00:00
..
array-iterator.js Use import/export for more functions (instead of js builtins object). 2015-10-15 10:23:09 +00:00
array.js Debugger: allow stepping into resolver from Promise constructor. 2015-10-15 12:27:40 +00:00
arraybuffer.js Use import/export for more functions (instead of js builtins object). 2015-10-15 10:23:09 +00:00
code-stubs.js
collection-iterator.js Use import/export for more functions (instead of js builtins object). 2015-10-15 10:23:09 +00:00
collection.js Debugger: allow stepping into resolver from Promise constructor. 2015-10-15 12:27:40 +00:00
date.js Use import/export for more functions (instead of js builtins object). 2015-10-15 10:23:09 +00:00
generator.js Debugger: allow stepping into resolver from Promise constructor. 2015-10-15 12:27:40 +00:00
harmony-array-includes.js
harmony-array.js
harmony-atomics.js
harmony-concat-spreadable.js
harmony-object-observe.js Native context: use import/export for Object observe related functions. 2015-10-15 08:32:47 +00:00
harmony-reflect.js [es6] Implement Reflect.enumerate. 2015-10-15 12:59:37 +00:00
harmony-regexp.js
harmony-sharedarraybuffer.js Use import/export for more functions (instead of js builtins object). 2015-10-15 10:23:09 +00:00
harmony-simd.js
harmony-spread.js
harmony-tostring.js
harmony-typedarray.js
i18n.js
iterator-prototype.js
json.js
macros.py Make RegExp use ToLength on lastIndex when flag is turned on 2015-10-15 14:10:48 +00:00
math.js Use import/export for more functions (instead of js builtins object). 2015-10-15 10:23:09 +00:00
messages.js Use import/export for more functions (instead of js builtins object). 2015-10-15 10:23:09 +00:00
object-observe.js Use import/export for more functions (instead of js builtins object). 2015-10-15 10:23:09 +00:00
prologue.js Use import/export for more functions (instead of js builtins object). 2015-10-15 10:23:09 +00:00
promise.js Debugger: allow stepping into resolver from Promise constructor. 2015-10-15 12:27:40 +00:00
proxy.js
regexp.js Make RegExp use ToLength on lastIndex when flag is turned on 2015-10-15 14:10:48 +00:00
runtime.js Use import/export for more functions (instead of js builtins object). 2015-10-15 10:23:09 +00:00
string-iterator.js
string.js
symbol.js
templates.js
typedarray.js Use import/export for more functions (instead of js builtins object). 2015-10-15 10:23:09 +00:00
uri.js
v8natives.js Take Symbol-keyed properties into account in Object.freeze and friends 2015-10-15 13:32:57 +00:00
weak-collection.js Use import/export for more functions (instead of js builtins object). 2015-10-15 10:23:09 +00:00