Skip to content

Commit

Permalink
Merge pull request #107 from igurisandhu/fix/negated-expression-bug-101
Browse files Browse the repository at this point in the history
fix: correct negated expression for Object.defineProperty check (#101)
  • Loading branch information
drawcall authored Sep 28, 2024
2 parents 59173e9 + 58a7857 commit f44b1c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion example/game/crafty/js/crafty.js
Original file line number Diff line number Diff line change
Expand Up @@ -4303,7 +4303,7 @@ Crafty.storage = (function () {
* Is `Object.defineProperty` supported?
*/
support.defineProperty = (function () {
if (!'defineProperty' in Object) return false;
if (!('defineProperty' in Object)) return false;
try { Object.defineProperty({}, 'x', {}); }
catch (e) { return false };
return true;
Expand Down

0 comments on commit f44b1c8

Please sign in to comment.