mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-01 07:47:49 +00:00
Ensure EXPANDO doesn't disable fast properties in v8.
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
PARTIAL_RIGHT_FLAG = 64;
|
||||
|
||||
/** Used as the property name for wrapper metadata */
|
||||
var EXPANDO = '__lodash@' + VERSION + '__';
|
||||
var EXPANDO = '__lodash_' + VERSION.replace(/[-.]/g, '_') + '__';
|
||||
|
||||
/** Used as the TypeError message for "Functions" methods */
|
||||
var FUNC_ERROR_TEXT = 'Expected a function';
|
||||
|
||||
@@ -187,7 +187,7 @@
|
||||
));
|
||||
|
||||
/** Used as the property name for wrapper metadata */
|
||||
var EXPANDO = '__lodash@' + _.VERSION + '__';
|
||||
var EXPANDO = '__lodash_' + _.VERSION.replace(/[-.]/g, '_') + '__';
|
||||
|
||||
/** Used to provide falsey values to methods */
|
||||
var falsey = [, '', 0, false, NaN, null, undefined];
|
||||
|
||||
Reference in New Issue
Block a user