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

Commit

Permalink
must set hasEval to false if the Function() constructor test throws
Browse files Browse the repository at this point in the history
  • Loading branch information
Scott J. Miles committed Oct 30, 2013
1 parent 862dba0 commit 15868fb
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 15868fb

Please sign in to comment.