We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1968c5c commit 752e72cCopy full SHA for 752e72c
tests/unit-global/es.regexp.constructor.js
@@ -24,7 +24,7 @@ if (DESCRIPTORS) {
24
object[Symbol.match] = true;
25
object.constructor = RegExp;
26
assert.same(object, RegExp(object), 'RegExp(O) is O, changed Symbol.match');
27
- assert.same(String(regexp), '/a/g', 'b is /a/g');
+ assert.same(String(regexp), '/a/g', 'regexp is /a/g');
28
assert.same(String(new RegExp(/a/g, 'mi')), '/a/im', 'Allows a regex with flags');
29
assert.true(new RegExp(/a/g, 'im') instanceof RegExp, 'Works with instanceof');
30
assert.same(new RegExp(/a/g, 'im').constructor, RegExp, 'Has the right constructor');
0 commit comments