Skip to content

Commit

Permalink
fix symbol descriptors from different shims
Browse files Browse the repository at this point in the history
  • Loading branch information
zloirock committed Jul 21, 2015
1 parent a554185 commit 56f34c7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions library/modules/es6.symbol.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ var $ = require('./$')
, shared = require('./$.shared')
, setTag = require('./$.cof').set
, uid = require('./$.uid')
, wks = require('./$.wks')
, keyOf = require('./$.keyof')
, $names = require('./$.get-names')
, enumKeys = require('./$.enum-keys')
Expand All @@ -21,7 +22,7 @@ var $ = require('./$')
, getNames = $names.get
, $Symbol = global.Symbol
, setter = false
, HIDDEN = uid('hidden')
, HIDDEN = wks('_hidden')
, isEnum = $.isEnum
, SymbolRegistry = shared('symbol-registry')
, AllSymbols = shared('symbols')
Expand Down Expand Up @@ -160,7 +161,7 @@ $.each.call((
'hasInstance,isConcatSpreadable,iterator,match,replace,search,' +
'species,split,toPrimitive,toStringTag,unscopables'
).split(','), function(it){
var sym = require('./$.wks')(it);
var sym = wks(it);
symbolStatics[it] = useNative ? sym : wrap(sym);
}
);
Expand Down
5 changes: 3 additions & 2 deletions modules/es6.symbol.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ var $ = require('./$')
, shared = require('./$.shared')
, setTag = require('./$.cof').set
, uid = require('./$.uid')
, wks = require('./$.wks')
, keyOf = require('./$.keyof')
, $names = require('./$.get-names')
, enumKeys = require('./$.enum-keys')
Expand All @@ -21,7 +22,7 @@ var $ = require('./$')
, getNames = $names.get
, $Symbol = global.Symbol
, setter = false
, HIDDEN = uid('hidden')
, HIDDEN = wks('_hidden')
, isEnum = $.isEnum
, SymbolRegistry = shared('symbol-registry')
, AllSymbols = shared('symbols')
Expand Down Expand Up @@ -160,7 +161,7 @@ $.each.call((
'hasInstance,isConcatSpreadable,iterator,match,replace,search,' +
'species,split,toPrimitive,toStringTag,unscopables'
).split(','), function(it){
var sym = require('./$.wks')(it);
var sym = wks(it);
symbolStatics[it] = useNative ? sym : wrap(sym);
}
);
Expand Down

0 comments on commit 56f34c7

Please sign in to comment.