Skip to content

Commit

Permalink
fix: correct negated expression for Object.defineProperty check (#101)
Browse files Browse the repository at this point in the history
  • Loading branch information
igurisandhu committed Sep 27, 2024
1 parent 59173e9 commit 58a7857
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 58a7857

Please sign in to comment.