Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Commit

Permalink
Merge pull request #288 from Polymer/fix-hasEval
Browse files Browse the repository at this point in the history
must set `hasEval` to false if the Function() constructor test throws
  • Loading branch information
Scott J. Miles committed Oct 30, 2013
2 parents 862dba0 + 15868fb commit 589410b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/wrappers.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ var ShadowDOMPolyfill = {};
var f = new Function('', 'return true;');
hasEval = f();
} catch (ex) {
hasEval = false;
}
}

Expand Down Expand Up @@ -370,4 +371,4 @@ var ShadowDOMPolyfill = {};
scope.wrapIfNeeded = wrapIfNeeded;
scope.wrappers = wrappers;

})(this.ShadowDOMPolyfill);
})(this.ShadowDOMPolyfill);

0 comments on commit 589410b

Please sign in to comment.