Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't set Symbol when loading asyncIterator #267

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Don't set Symbol when loading asyncIterator
  • Loading branch information
taion committed Dec 21, 2016
commit 19fc700669de6a403bd3b29ccf4e7de0cf9615e4
9 changes: 6 additions & 3 deletions library/modules/_wks-define.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ 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 || {});
if(name.charAt(0) != '_' && !(name in $Symbol))defineProperty($Symbol, name, {value: wksExt.f(name)});
};
var $Symbol = core.Symbol || (LIBRARY ? null : global.Symbol);
if(name.charAt(0) != '_') {
if($Symbol && !(name in $Symbol))defineProperty($Symbol, name, {value: wksExt.f(name)});
else wksExt.f(name);
}
};
9 changes: 6 additions & 3 deletions modules/_wks-define.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ 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 || {});
if(name.charAt(0) != '_' && !(name in $Symbol))defineProperty($Symbol, name, {value: wksExt.f(name)});
};
var $Symbol = core.Symbol || (LIBRARY ? null : global.Symbol);
if(name.charAt(0) != '_') {
if($Symbol && !(name in $Symbol))defineProperty($Symbol, name, {value: wksExt.f(name)});
else wksExt.f(name);
}
};