v8/test/mjsunit/es6
littledan e99d292909 Base the right RegExp brand checks on Symbol.match
The ES2015 specification requires that String.prototype.startsWith,
String.prototype.endsWith and String.prototype.includes use the IsRegExp
internal algorithm to determine whether to throw a TypeError to prevent
a RegExp from being accidentally cast to a String for those methods.
That internal algorithm checks the presence/truthiness of Symbol.match
to make its determination. This patch switches the builtins to use
this correct test, rather than checking for the [[RegExpMatcher]]
internal slot as the builtins previously did.

R=yangguo

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

Cr-Commit-Position: refs/heads/master@{#34547}
2016-03-07 16:05:56 +00:00
..
debug-promises Ship ES2015 Symbol.species 2016-02-23 19:52:14 +00:00
regress [debugger] remove step count parameter from prepare step. 2015-12-16 08:39:54 +00:00
arguments-iterator.js Fixing Sloppy Symbol.iterator setter 2015-09-14 07:22:35 +00:00
array-concat.js Ship ES2015 Symbol.species 2016-02-23 19:52:14 +00:00
array-copywithin.js Remove stale references to --harmony-arrays flag in mjsunit tests 2015-10-15 17:39:42 +00:00
array-fill.js Remove stale references to --harmony-arrays flag in mjsunit tests 2015-10-15 17:39:42 +00:00
array-find.js Remove stale references to --harmony-arrays flag in mjsunit tests 2015-10-15 17:39:42 +00:00
array-findindex.js Remove stale references to --harmony-arrays flag in mjsunit tests 2015-10-15 17:39:42 +00:00
array-from.js Remove stale references to --harmony-arrays flag in mjsunit tests 2015-10-15 17:39:42 +00:00
array-iterator.js Fix spec-compliance bug in ArrayIteratorPrototype. 2016-03-01 11:51:52 +00:00
array-length.js Remove flags for ES2015 features shipped in M48 2016-02-03 20:51:46 +00:00
array-of.js Remove stale references to --harmony-arrays flag in mjsunit tests 2015-10-15 17:39:42 +00:00
array-reverse-order.js
array-tostring.js [tests] Fix bogus uses of assertThrows. 2016-01-07 14:49:21 +00:00
arrow-functions-lexical-arguments.js Remove --harmony-arrow-functions flag 2015-09-30 19:50:40 +00:00
arrow-functions-this.js Remove --harmony-arrow-functions flag 2015-09-30 19:50:40 +00:00
arrow-functions.js [parser] fix token end position for regexp literals 2015-10-09 01:02:02 +00:00
arrow-rest-params-lazy-parsing.js Remove always-on --harmony-rest-parameters flag 2015-12-12 00:00:38 +00:00
arrow-rest-params.js Remove always-on --harmony-rest-parameters flag 2015-12-12 00:00:38 +00:00
block-conflicts.js Add class to existing lexical scoping tests 2015-08-12 18:43:06 +00:00
block-const-assign.js Delete --harmony-computed-property-names flag 2015-08-05 21:32:38 +00:00
block-early-errors.js Reland of Ship ES2015 sloppy-mode function hoisting, let, class (patchset #1 id:1 of https://codereview.chromium.org/1565263002/ ) 2016-01-08 17:34:59 +00:00
block-eval-var-over-legacy-const.js Ship ES2015 sloppy-mode const semantics 2016-01-11 23:09:59 +00:00
block-for.js Remove flags for ES2015 features shipped in M48 2016-02-03 20:51:46 +00:00
block-leave.js
block-let-contextual-sloppy.js Ship ES2015 sloppy-mode const semantics 2016-01-11 23:09:59 +00:00
block-let-crankshaft.js
block-let-declaration.js Add class to existing lexical scoping tests 2015-08-12 18:43:06 +00:00
block-let-semantics.js Add class to existing lexical scoping tests 2015-08-12 18:43:06 +00:00
block-non-strict-errors.js Reland of Ship ES2015 sloppy-mode function hoisting, let, class (patchset #1 id:1 of https://codereview.chromium.org/1565263002/ ) 2016-01-08 17:34:59 +00:00
block-scope-class.js Reland of Ship ES2015 sloppy-mode function hoisting, let, class (patchset #1 id:1 of https://codereview.chromium.org/1565263002/ ) 2016-01-08 17:34:59 +00:00
block-scoping-top-level.js
block-scoping.js [turbofan] Initial support for monomorphic/polymorphic property loads. 2015-10-19 05:24:51 +00:00
built-in-accessor-names.js Reland of Use ES2015-style TypedArray prototype chain (patchset #1 id:1 of https://codereview.chromium.org/1554523002/ ) 2015-12-30 22:14:16 +00:00
class-computed-property-names-super.js Delete --harmony-computed-property-names flag 2015-08-05 21:32:38 +00:00
class-property-name-eval-arguments.js
classes-derived-return-type.js Reland of Ship ES2015 sloppy-mode function hoisting, let, class (patchset #1 id:1 of https://codereview.chromium.org/1565263002/ ) 2016-01-08 17:34:59 +00:00
classes-experimental.js
classes-lazy-parsing.js
classes-maps.js
classes-proxy.js [runtime] [proxy] implement [[Construct]] 2015-12-09 14:55:33 +00:00
classes-subclass-arrays.js
classes-subclass-builtins.js Remove the global Strength enum class completely. 2016-03-01 16:06:04 +00:00
classes-super.js [classes] Support AccessorInfo-style data properties in super property stores. 2016-02-19 16:04:43 +00:00
classes.js Ship ES2015 Function.name reform 2016-03-04 04:04:13 +00:00
classof-proxy.js Fix Object.prototype.toString.call(proxy) 2015-12-11 15:57:30 +00:00
collection-iterator.js
collections.js
completion.js Remove flags for ES2015 features shipped in M48 2016-02-03 20:51:46 +00:00
computed-property-names-classes.js Delete --harmony-computed-property-names flag 2015-08-05 21:32:38 +00:00
computed-property-names-deopt.js Delete --harmony-computed-property-names flag 2015-08-05 21:32:38 +00:00
computed-property-names-object-literals-methods.js Delete --harmony-computed-property-names flag 2015-08-05 21:32:38 +00:00
computed-property-names-super.js Delete --harmony-computed-property-names flag 2015-08-05 21:32:38 +00:00
computed-property-names.js [es6] Fix computed property names in nested literals 2015-08-25 21:10:44 +00:00
debug-blockscopes.js [debugger] debug-evaluate should not not modify local values. 2015-12-15 09:54:46 +00:00
debug-break-default-constructor.js [debugger] remove step count parameter from prepare step. 2015-12-16 08:39:54 +00:00
debug-evaluate-arrow-function-receiver.js [debugger] fix debug-evaluate wrt shadowed context var. 2015-12-14 10:25:11 +00:00
debug-evaluate-blockscopes.js
debug-function-scopes.js Debugger: move implementation to a separate folder. 2015-07-31 11:08:15 +00:00
debug-liveedit-new-target-1.js Reland of [debugger] do not restart frames that reference new.target for liveedit. (patchset #1 id:1 of https://codereview.chromium.org/1493863004/ ) 2015-12-03 20:21:36 +00:00
debug-liveedit-new-target-2.js Reland of [debugger] do not restart frames that reference new.target for liveedit. (patchset #1 id:1 of https://codereview.chromium.org/1493863004/ ) 2015-12-03 20:21:36 +00:00
debug-liveedit-new-target-3.js Reland of [debugger] do not restart frames that reference new.target for liveedit. (patchset #1 id:1 of https://codereview.chromium.org/1493863004/ ) 2015-12-03 20:21:36 +00:00
debug-step-into-class-extends.js [debugger] remove step count parameter from prepare step. 2015-12-16 08:39:54 +00:00
debug-step-into-constructor.js [debugger] remove step count parameter from prepare step. 2015-12-16 08:39:54 +00:00
debug-step-into-regexp-subclass.js [debugger] remove step count parameter from prepare step. 2015-12-16 08:39:54 +00:00
debug-stepin-collections-foreach.js [debugger] remove step count parameter from prepare step. 2015-12-16 08:39:54 +00:00
debug-stepin-generators.js [debugger] remove step count parameter from prepare step. 2015-12-16 08:39:54 +00:00
debug-stepin-microtasks.js [debugger] remove step count parameter from prepare step. 2015-12-16 08:39:54 +00:00
debug-stepin-string-template.js [debugger] break at each initialization in a multiple var declaration. 2016-03-07 13:41:18 +00:00
debug-stepnext-for.js [debugger] break at each initialization in a multiple var declaration. 2016-03-07 13:41:18 +00:00
empty-for.js
for-of.js [es6] allow any LeftHandSideExpression in for-of loops 2015-11-05 06:47:56 +00:00
function-length-configurable.js
function-name-configurable.js
function-prototype-name.js
generators-debug-liveedit.js
generators-debug-scopes.js
generators-iteration.js [generators] Desugar yield*. 2016-02-04 14:13:03 +00:00
generators-mirror.js
generators-objects.js Make generators non-constructable. 2016-01-18 13:11:06 +00:00
generators-parsing.js [es6] Fix parsing of 'yield' in function and generator expressions 2015-11-23 21:34:30 +00:00
generators-poisoned-properties.js
generators-relocation.js
generators-runtime.js [generators] Implement Generator.prototype.return. 2016-02-04 17:14:15 +00:00
generators-states.js Fix bug where generators got closed prematurely. 2016-01-27 08:13:24 +00:00
hasinstance-symbol.js Implement symbol @@hasInstance for ES6 instanceof support. 2016-02-11 11:59:22 +00:00
indexed-integer-exotics.js
instanceof-proxies.js [proxies] Limit recursive proxy prototype lookups to 100'000 2015-12-22 12:52:57 +00:00
iteration-semantics.js [runtime] support new Proxy() instead of Proxy.create and install getPrototypeOf trap 2015-11-13 14:14:07 +00:00
iteration-syntax.js
iterator-prototype.js
json.js
legacy-subclassing.js Construct instances of base class from TypedArray.prototype.subarray 2016-01-14 19:23:26 +00:00
map-minus-zero.js
math-cbrt.js
math-clz32.js
math-expm1.js
math-fround.js
math-hyperbolic.js Implement Math.tanh using fdlibm port. 2015-10-16 12:56:37 +00:00
math-hypot.js
math-log1p.js
math-log2-log10.js
math-sign.js
math-trunc.js
math.js
method-name-eval-arguments.js
microtask-delivery.js Add a --harmony-object-observe runtime flag (on by default) 2015-08-04 20:53:32 +00:00
mirror-collections.js
mirror-iterators.js
mirror-promises.js
mirror-symbols.js
new-target.js Remove always-on --harmony-rest-parameters flag 2015-12-12 00:00:38 +00:00
no-unicode-regexp-flag.js [regexp] ship unicode regexps. 2016-02-12 06:45:09 +00:00
numeric-literals.js
object-assign.js [builtins] Add an initial fast-path to Object.assign. 2016-02-11 13:17:49 +00:00
object-literals-method.js Make generators non-constructable. 2016-01-18 13:11:06 +00:00
object-literals-property-shorthand.js [es6] support get and set in shorthand properties 2015-09-16 16:02:05 +00:00
object-literals-super.js Remove --harmony-arrow-functions flag 2015-09-30 19:50:40 +00:00
object-tostring.js [tests] Fix bogus uses of assertThrows. 2016-01-07 14:49:21 +00:00
promise-internal-setter.js Unstage non-standard Promise functions 2015-12-10 23:58:26 +00:00
promises.js [promise] make Promise.resolve match spec 2016-01-04 19:16:09 +00:00
prototype-ordinary-objects.js
regexp-constructor.js Introduce a BuiltinsConstructStub that sets up new.target and does a [[call]] per ES6 9.3.2 2015-11-19 16:11:09 +00:00
regexp-flags.js ES2015 web compat workaround: RegExp.prototype.flags => "" 2016-02-23 01:49:03 +00:00
regexp-match-lastindex.js Do not coerce lastIndex of a global RegExp in @@match and @@replace. 2015-10-16 11:25:37 +00:00
regexp-prototype.js RegExp.prototype is an ordinary object. 2015-11-03 06:18:44 +00:00
regexp-replace-lastindex.js Do not coerce lastIndex of a global RegExp in @@match and @@replace. 2015-10-16 11:25:37 +00:00
regexp-tolength.js Remove flags for ES2015 features shipped in M48 2016-02-03 20:51:46 +00:00
regexp-tostring.js [regexp] Fix RegExp.prototype.toString. 2016-02-11 13:23:20 +00:00
rest-params-lazy-parsing.js Remove always-on --harmony-rest-parameters flag 2015-12-12 00:00:38 +00:00
rest-params.js [es6] enable destructuring rest parameters 2016-01-08 20:22:52 +00:00
set-minus-zero.js
spread-array.js Remove flags for spread calls and arrays 2015-10-28 15:57:27 +00:00
spread-call-new-class.js Remove always-on --harmony-rest-parameters flag 2015-12-12 00:00:38 +00:00
spread-call-new.js Remove flags for spread calls and arrays 2015-10-28 15:57:27 +00:00
spread-call-super-property.js Remove always-on --harmony-rest-parameters flag 2015-12-12 00:00:38 +00:00
spread-call.js Remove flags for spread calls and arrays 2015-10-28 15:57:27 +00:00
string-codepointat.js
string-endswith.js Base the right RegExp brand checks on Symbol.match 2016-03-07 16:05:56 +00:00
string-fromcodepoint.js
string-html.js
string-includes.js Base the right RegExp brand checks on Symbol.match 2016-03-07 16:05:56 +00:00
string-iterator.js
string-raw.js
string-repeat.js [es6] Allow any valid repeat of empty string in String.prototype.repeat 2015-11-20 23:57:39 +00:00
string-search.js [es6] implement RegExp.@@search. 2015-12-14 10:22:41 +00:00
string-startswith.js Base the right RegExp brand checks on Symbol.match 2016-03-07 16:05:56 +00:00
super.js Remove always-on --harmony-rest-parameters flag 2015-12-12 00:00:38 +00:00
symbols.js Implement symbol @@hasInstance for ES6 instanceof support. 2016-02-11 11:59:22 +00:00
tail-call-megatest.js [crankshaft] Support ES6 tail call elimination. 2016-03-07 14:34:48 +00:00
tail-call-proxies.js [es6] Tail calls support. 2016-01-26 11:07:40 +00:00
tail-call-simple.js [crankshaft] Support ES6 tail call elimination. 2016-03-07 14:34:48 +00:00
tail-call.js [crankshaft] Support ES6 tail call elimination. 2016-03-07 14:34:48 +00:00
templates.js Stop treating scopes containing template strings tagged with 'eval' specially 2016-01-12 18:09:13 +00:00
throw-type-error-function-restrictions.js
typed-array-iterator.js Reland of Use ES2015-style TypedArray prototype chain (patchset #1 id:1 of https://codereview.chromium.org/1554523002/ ) 2015-12-30 22:14:16 +00:00
typedarray-copywithin.js
typedarray-every.js
typedarray-fill.js
typedarray-find.js
typedarray-findindex.js
typedarray-foreach.js
typedarray-from.js
typedarray-indexing.js
typedarray-iteration.js
typedarray-of.js Make TypedArray.from and TypedArray.of writable and configurable 2016-02-26 04:39:54 +00:00
typedarray-proto.js Restore per-TypedArray-class length accessors as a perf workaround 2016-01-25 20:26:51 +00:00
typedarray-reduce.js
typedarray-reverse.js
typedarray-set-length.js Only evaluate length once in %TypedArray%.prototype.set 2015-08-19 01:33:06 +00:00
typedarray-slice.js
typedarray-sort.js
typedarray-tostring.js
typedarray.js [builtins] Migrate the DataView constructor to C++. 2016-02-19 08:59:19 +00:00
unicode-escapes.js Delete --harmony-unicode flag 2015-08-05 19:08:42 +00:00
unscopables.js