Skip to content

Commit

Permalink
[Tests] Don't attempt to define properties on this test object unless…
Browse files Browse the repository at this point in the history
… we're in true ES5.
  • Loading branch information
ljharb committed Oct 23, 2015
1 parent 1f10134 commit 741caf7
Showing 1 changed file with 17 additions and 15 deletions.
32 changes: 17 additions & 15 deletions test/reflect.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,23 +35,25 @@ describe('Reflect', function () {
_value: 0
};

Object.defineProperties(object, {
value: {
get: function () {
return this._value;
}
},
if (supportsDescriptors) {
Object.defineProperties(object, {
value: {
get: function () {
return this._value;
}
},

setter: {
set: function (val) {
this._value = val;
}
},
setter: {
set: function (val) {
this._value = val;
}
},

bool: {
value: true
}
});
bool: {
value: true
}
});
}

var testXThrow = function (values, func) {
function checker(item) {
Expand Down

0 comments on commit 741caf7

Please sign in to comment.