mirror of
https://github.com/hanzoai/core-js.git
synced 2026-09-24 16:58:15 +00:00
fix an assert message
This commit is contained in:
@@ -24,7 +24,7 @@ if (DESCRIPTORS) {
|
||||
object[Symbol.match] = true;
|
||||
object.constructor = RegExp;
|
||||
assert.same(object, RegExp(object), 'RegExp(O) is O, changed Symbol.match');
|
||||
assert.same(String(regexp), '/a/g', 'b is /a/g');
|
||||
assert.same(String(regexp), '/a/g', 'regexp is /a/g');
|
||||
assert.same(String(new RegExp(/a/g, 'mi')), '/a/im', 'Allows a regex with flags');
|
||||
assert.true(new RegExp(/a/g, 'im') instanceof RegExp, 'Works with instanceof');
|
||||
assert.same(new RegExp(/a/g, 'im').constructor, RegExp, 'Has the right constructor');
|
||||
|
||||
Reference in New Issue
Block a user