mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-01 23:57:49 +00:00
Cleanup Babel workaround.
This commit is contained in:
11
test/test.js
11
test/test.js
@@ -890,13 +890,10 @@
|
||||
assert.deepEqual(actual, [object, object], label);
|
||||
|
||||
try {
|
||||
var symObject = Object(symbol);
|
||||
|
||||
// Avoid symbol detection in Babel's `typeof` helper.
|
||||
symObject.constructor = Object;
|
||||
|
||||
// Avoid buggy symbol detection in Babel's `_typeof` helper.
|
||||
var symObject = setProperty(Object(symbol), 'constructor', Object);
|
||||
actual = [
|
||||
Symbol ? lodashBizarro.clone(symObject) : { 'constructor': Object },
|
||||
Symbol ? lodashBizarro.clone(symObject) : {},
|
||||
Symbol ? lodashBizarro.isEqual(symObject, Object(symbol)) : false,
|
||||
Symbol ? lodashBizarro.toString(symObject) : ''
|
||||
];
|
||||
@@ -904,7 +901,7 @@
|
||||
actual = null;
|
||||
}
|
||||
label = message('_.clone`, `_.isEqual`, and `_.toString', 'Symbol');
|
||||
assert.deepEqual(actual, [{ 'constructor': Object }, false, ''], label);
|
||||
assert.deepEqual(actual, [{}, false, ''], label);
|
||||
|
||||
try {
|
||||
var map = new lodashBizarro.memoize.Cache;
|
||||
|
||||
Reference in New Issue
Block a user