summaryrefslogtreecommitdiff
path: root/test/built-ins/Object/defineProperty/15.2.3.6-3-223.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/Object/defineProperty/15.2.3.6-3-223.js')
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-3-223.js10
1 files changed, 1 insertions, 9 deletions
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-223.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-223.js
index 2db97c35f..165f297a7 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-3-223.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-223.js
@@ -7,22 +7,14 @@ description: >
Object.defineProperty - 'Attributes' is the Math object that uses
Object's [[Get]] method to access the 'get' property (8.10.5 step
7.a)
-includes: [runTestCase.js]
---*/
-function testcase() {
var obj = {};
- try {
Math.get = function () {
return "mathGetProperty";
};
Object.defineProperty(obj, "property", Math);
- return obj.property === "mathGetProperty";
- } finally {
- delete Math.get;
- }
- }
-runTestCase(testcase);
+assert.sameValue(obj.property, "mathGetProperty", 'obj.property');