Skip to content

Commit 752e72c

Browse files
committed
fix an assert message
1 parent 1968c5c commit 752e72c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/unit-global/es.regexp.constructor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ if (DESCRIPTORS) {
2424
object[Symbol.match] = true;
2525
object.constructor = RegExp;
2626
assert.same(object, RegExp(object), 'RegExp(O) is O, changed Symbol.match');
27-
assert.same(String(regexp), '/a/g', 'b is /a/g');
27+
assert.same(String(regexp), '/a/g', 'regexp is /a/g');
2828
assert.same(String(new RegExp(/a/g, 'mi')), '/a/im', 'Allows a regex with flags');
2929
assert.true(new RegExp(/a/g, 'im') instanceof RegExp, 'Works with instanceof');
3030
assert.same(new RegExp(/a/g, 'im').constructor, RegExp, 'Has the right constructor');

0 commit comments

Comments
 (0)