diff options
author | Mike Pennisi <mike@mikepennisi.com> | 2016-04-22 13:07:00 -0400 |
---|---|---|
committer | Gorkem Yakin <goyakin@microsoft.com> | 2016-04-25 11:09:21 -0700 |
commit | eb644bb2da80a294282c4d98ad6fdef0bde5562f (patch) | |
tree | da0ff0882600854fb373bda83fc2f3780361e206 /test/built-ins/Object/defineProperty/15.2.3.6-4-354-4.js | |
parent | 9aa4dced8d8afbe114b16650187ebb14c3e21e01 (diff) | |
download | qtdeclarative-testsuites-eb644bb2da80a294282c4d98ad6fdef0bde5562f.tar.gz |
Reduce reliance on `fnGlobalObject.js`
This harness function is not necessary in the majority of cases in which
it is used. Remove its usage to simplify tests and decrease the amount
of domain-specific knowledge necessary to contribute to the test suite.
Persist the harness function itself for use by future tests for ES2015
modules (such a helper is necessary for tests that are interpreted as
module code).
Diffstat (limited to 'test/built-ins/Object/defineProperty/15.2.3.6-4-354-4.js')
-rw-r--r-- | test/built-ins/Object/defineProperty/15.2.3.6-4-354-4.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-354-4.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-354-4.js index 6b5927f4a..5f644bd4c 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-354-4.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-354-4.js @@ -7,11 +7,11 @@ description: > Object.defineProperty will update [[Value]] attribute successfully when [[Configurable]] attribute is true and [[Writable]] attribute is false, 'O' is the global object (8.12.9 - step Note) -includes: [propertyHelper.js, fnGlobalObject.js] +includes: [propertyHelper.js] ---*/ -var obj = fnGlobalObject(); +var obj = this; try { Object.defineProperty(obj, "property", { |