Skip to content

Commit

Permalink
Use Function::bind instead of console.warn.bind
Browse files Browse the repository at this point in the history
  • Loading branch information
m-mujica committed Sep 25, 2017
1 parent e6dfcb2 commit 9889943
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/system-extension-module-loaded-twice.js
Expand Up @@ -6,8 +6,8 @@
addStealExtension(function(loader) {
var superInstantiate = loader.instantiate;

var warn = console && typeof console.warn === "function" ?
console.warn.bind(console) :
var warn = typeof console === "object" ?
Function.prototype.bind.call(console.warn, console) :
null;

loader._instantiatedModules = loader._instantiatedModules || {};
Expand Down
4 changes: 2 additions & 2 deletions steal-sans-promises.js
Expand Up @@ -4990,8 +4990,8 @@ addStealExtension(function (loader) {
addStealExtension(function(loader) {
var superInstantiate = loader.instantiate;

var warn = console && typeof console.warn === "function" ?
console.warn.bind(console) :
var warn = typeof console === "object" ?
Function.prototype.bind.call(console.warn, console) :
null;

loader._instantiatedModules = loader._instantiatedModules || {};
Expand Down
2 changes: 1 addition & 1 deletion steal-sans-promises.production.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions steal.js
Expand Up @@ -6260,8 +6260,8 @@ addStealExtension(function (loader) {
addStealExtension(function(loader) {
var superInstantiate = loader.instantiate;

var warn = console && typeof console.warn === "function" ?
console.warn.bind(console) :
var warn = typeof console === "object" ?
Function.prototype.bind.call(console.warn, console) :
null;

loader._instantiatedModules = loader._instantiatedModules || {};
Expand Down
2 changes: 1 addition & 1 deletion steal.production.js

Large diffs are not rendered by default.

0 comments on commit 9889943

Please sign in to comment.