mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-12 11:57:49 +00:00
Update _.clone unit test for older Safari.
This commit is contained in:
@@ -638,9 +638,9 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
test('`_.' + methodName + '` should deep clone `lastIndex` regexp property', 1, function() {
|
test('`_.' + methodName + '` should deep clone `lastIndex` regexp property', 1, function() {
|
||||||
// avoid regexp literal here for older Opera
|
// avoid a regexp literal for older Opera and use `exec` for older Safari
|
||||||
var regexp = RegExp('x', 'g');
|
var regexp = RegExp('x', 'g');
|
||||||
regexp.test('vwxyz');
|
regexp.exec('vwxyz');
|
||||||
|
|
||||||
var actual = func(regexp);
|
var actual = func(regexp);
|
||||||
equal(actual.lastIndex, 3);
|
equal(actual.lastIndex, 3);
|
||||||
|
|||||||
Reference in New Issue
Block a user