From a9099c1f206d246605a28e1f1c302ccb3de2382a Mon Sep 17 00:00:00 2001 From: Leo Balter Date: Thu, 7 Sep 2017 18:27:29 -0400 Subject: [PATCH] Add missing Symbol.replace feature flags --- .../RegExp/prototype/Symbol.replace/exec-invocation.js | 2 +- test/built-ins/RegExp/prototype/Symbol.replace/get-exec-err.js | 2 +- test/built-ins/RegExp/prototype/Symbol.replace/length.js | 1 + test/built-ins/RegExp/prototype/Symbol.replace/name.js | 1 + test/built-ins/RegExp/prototype/Symbol.replace/prop-desc.js | 1 + .../RegExp/prototype/Symbol.replace/result-coerce-length-err.js | 2 +- .../RegExp/prototype/Symbol.replace/result-get-length-err.js | 2 +- 7 files changed, 7 insertions(+), 4 deletions(-) diff --git a/test/built-ins/RegExp/prototype/Symbol.replace/exec-invocation.js b/test/built-ins/RegExp/prototype/Symbol.replace/exec-invocation.js index 0669de385e..1a802d780c 100644 --- a/test/built-ins/RegExp/prototype/Symbol.replace/exec-invocation.js +++ b/test/built-ins/RegExp/prototype/Symbol.replace/exec-invocation.js @@ -17,7 +17,7 @@ info: > 4. ReturnIfAbrupt(exec). 5. If IsCallable(exec) is true, then a. Let result be Call(exec, R, «S»). -features: [Symbol.match] +features: [Symbol.replace] ---*/ var r = /./; diff --git a/test/built-ins/RegExp/prototype/Symbol.replace/get-exec-err.js b/test/built-ins/RegExp/prototype/Symbol.replace/get-exec-err.js index 45f30bd2d3..fc3001c785 100644 --- a/test/built-ins/RegExp/prototype/Symbol.replace/get-exec-err.js +++ b/test/built-ins/RegExp/prototype/Symbol.replace/get-exec-err.js @@ -16,7 +16,7 @@ info: > [...] 3. Let exec be Get(R, "exec"). 4. ReturnIfAbrupt(exec). -features: [Symbol.match] +features: [Symbol.replace] ---*/ var r = { global: true }; diff --git a/test/built-ins/RegExp/prototype/Symbol.replace/length.js b/test/built-ins/RegExp/prototype/Symbol.replace/length.js index 1686a1bd2d..3d96001dc0 100644 --- a/test/built-ins/RegExp/prototype/Symbol.replace/length.js +++ b/test/built-ins/RegExp/prototype/Symbol.replace/length.js @@ -16,6 +16,7 @@ info: > object has the attributes { [[Writable]]: false, [[Enumerable]]: false, [[Configurable]]: true }. includes: [propertyHelper.js] +features: [Symbol.replace] ---*/ assert.sameValue(RegExp.prototype[Symbol.replace].length, 2); diff --git a/test/built-ins/RegExp/prototype/Symbol.replace/name.js b/test/built-ins/RegExp/prototype/Symbol.replace/name.js index 67eba90a1b..796b8bbc8a 100644 --- a/test/built-ins/RegExp/prototype/Symbol.replace/name.js +++ b/test/built-ins/RegExp/prototype/Symbol.replace/name.js @@ -14,6 +14,7 @@ info: > object, if it exists, has the attributes { [[Writable]]: false, [[Enumerable]]: false, [[Configurable]]: true }. includes: [propertyHelper.js] +features: [Symbol.replace] ---*/ assert.sameValue(RegExp.prototype[Symbol.replace].name, '[Symbol.replace]'); diff --git a/test/built-ins/RegExp/prototype/Symbol.replace/prop-desc.js b/test/built-ins/RegExp/prototype/Symbol.replace/prop-desc.js index eb4f5f0823..8bd5f181d1 100644 --- a/test/built-ins/RegExp/prototype/Symbol.replace/prop-desc.js +++ b/test/built-ins/RegExp/prototype/Symbol.replace/prop-desc.js @@ -11,6 +11,7 @@ info: > B.2 has the attributes { [[Writable]]: true, [[Enumerable]]: false, [[Configurable]]: true } unless otherwise specified. includes: [propertyHelper.js] +features: [Symbol.replace] ---*/ verifyNotEnumerable(RegExp.prototype, Symbol.replace); diff --git a/test/built-ins/RegExp/prototype/Symbol.replace/result-coerce-length-err.js b/test/built-ins/RegExp/prototype/Symbol.replace/result-coerce-length-err.js index 55d4a69486..7b90c5bb77 100644 --- a/test/built-ins/RegExp/prototype/Symbol.replace/result-coerce-length-err.js +++ b/test/built-ins/RegExp/prototype/Symbol.replace/result-coerce-length-err.js @@ -14,7 +14,7 @@ info: > 16. Repeat, for each result in results, a. Let nCaptures be ToLength(Get(result, "length")). b. ReturnIfAbrupt(nCaptures). -features: [Symbol.match] +features: [Symbol.replace] ---*/ var r = /./; diff --git a/test/built-ins/RegExp/prototype/Symbol.replace/result-get-length-err.js b/test/built-ins/RegExp/prototype/Symbol.replace/result-get-length-err.js index 40f9d11d00..3dd1f1e0f2 100644 --- a/test/built-ins/RegExp/prototype/Symbol.replace/result-get-length-err.js +++ b/test/built-ins/RegExp/prototype/Symbol.replace/result-get-length-err.js @@ -13,7 +13,7 @@ info: > 16. Repeat, for each result in results, a. Let nCaptures be ToLength(Get(result, "length")). b. ReturnIfAbrupt(nCaptures). -features: [Symbol.match] +features: [Symbol.replace] ---*/ var r = /./;