Skip to content

Commit

Permalink
Fixed issue zloirock#262 Importing Symbol properties before Symbol fr…
Browse files Browse the repository at this point in the history
…om core-js/library breaks Symbol
  • Loading branch information
Garry Passarella authored and Garry Passarella committed Mar 1, 2017
1 parent 0bb657c commit 3ca45df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/modules/_wks-define.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ var global = require('./_global')
, wksExt = require('./_wks-ext')
, defineProperty = require('./_object-dp').f;
module.exports = function(name){
var $Symbol = core.Symbol || (core.Symbol = LIBRARY ? {} : global.Symbol || {});
var $Symbol = core.Symbol || (core.Symbol == LIBRARY ? {} : global.Symbol || {});
if(name.charAt(0) != '_' && !(name in $Symbol))defineProperty($Symbol, name, {value: wksExt.f(name)});
};

0 comments on commit 3ca45df

Please sign in to comment.