Skip to content

Commit

Permalink
fix scope abuse
Browse files Browse the repository at this point in the history
  • Loading branch information
John Denker committed Sep 21, 2015
1 parent e1b1300 commit aa90615
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/fromcodepoint.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ if (!String.fromCodePoint) {
(function() {
var defineProperty = (function() {
// IE 8 only supports `Object.defineProperty` on DOM elements
var result;
try {
var object = {};
var $defineProperty = Object.defineProperty;
var result = $defineProperty(object, "foo", object) && $defineProperty;
result = $defineProperty(object, "foo", object) && $defineProperty;
} catch(error) {}
return result;
}());
Expand Down

0 comments on commit aa90615

Please sign in to comment.