diff --git a/test/built-ins/RegExp/match-indices/indices-groups-properties.js b/test/built-ins/RegExp/match-indices/indices-groups-properties.js index 668fbb5199..514aed3dd3 100644 --- a/test/built-ins/RegExp/match-indices/indices-groups-properties.js +++ b/test/built-ins/RegExp/match-indices/indices-groups-properties.js @@ -18,13 +18,13 @@ info: | let groupNames = Object.getOwnPropertyNames(/(?.)|(?.)/du.exec("abcd").indices.groups); assert.compareArray(groupNames, ["fst", "snd"]); -// // Properties are created with Define, not Set -// let counter = 0; -// Object.defineProperty(Object.prototype, 'x', {set() { counter++; }}); +// Properties are created with Define, not Set +let counter = 0; +Object.defineProperty(Object.prototype, 'x', {set() { counter++; }}); let indices = /(?.)/d.exec('a').indices; let groups = indices.groups; -// assert.sameValue(counter, 0); +assert.sameValue(counter, 0); // Properties are writable, enumerable and configurable // (from CreateDataProperty) diff --git a/test/built-ins/RegExp/prototype/flags/coercion-hasIndices.js b/test/built-ins/RegExp/prototype/flags/coercion-hasIndices.js index 578a2aff83..b99443d898 100644 --- a/test/built-ins/RegExp/prototype/flags/coercion-hasIndices.js +++ b/test/built-ins/RegExp/prototype/flags/coercion-hasIndices.js @@ -30,16 +30,16 @@ r.hasIndices = ""; assert.sameValue(get.call(r), "", "hasIndices: the empty string"); r.hasIndices = "string"; -assert.sameValue(get.call(r), "s", "hasIndices: string"); +assert.sameValue(get.call(r), "d", "hasIndices: string"); r.hasIndices = 86; -assert.sameValue(get.call(r), "s", "hasIndices: 86"); +assert.sameValue(get.call(r), "d", "hasIndices: 86"); r.hasIndices = Symbol(); -assert.sameValue(get.call(r), "s", "hasIndices: Symbol()"); +assert.sameValue(get.call(r), "d", "hasIndices: Symbol()"); r.hasIndices = []; -assert.sameValue(get.call(r), "s", "hasIndices: []"); +assert.sameValue(get.call(r), "d", "hasIndices: []"); r.hasIndices = {}; -assert.sameValue(get.call(r), "s", "hasIndices: {}"); +assert.sameValue(get.call(r), "d", "hasIndices: {}"); diff --git a/test/built-ins/RegExp/prototype/hasIndices/cross-realm.js b/test/built-ins/RegExp/prototype/hasIndices/cross-realm.js index 2e0771f351..1efa4c615a 100644 --- a/test/built-ins/RegExp/prototype/hasIndices/cross-realm.js +++ b/test/built-ins/RegExp/prototype/hasIndices/cross-realm.js @@ -15,7 +15,7 @@ info: | features: [regexp-match-indices, cross-realm] ---*/ -var dotAll = Object.getOwnPropertyDescriptor(RegExp.prototype, 'hasIndices').get; +var hasIndices = Object.getOwnPropertyDescriptor(RegExp.prototype, 'hasIndices').get; var other = $262.createRealm().global; var otherRegExpProto = other.RegExp.prototype; var otherRegExpGetter = Object.getOwnPropertyDescriptor(otherRegExpProto, 'hasIndices').get;