Ensure EXPANDO doesn't disable fast properties in v8.

This commit is contained in:
John-David Dalton
2014-07-24 21:41:05 -07:00
parent 5178c3e67f
commit 642ed4061a
2 changed files with 2 additions and 2 deletions

View File

@@ -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';

View File

@@ -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];