diff options
Diffstat (limited to 'js/src/tests/ecma_5/Object/vacuous-accessor-unqualified-name.js')
-rw-r--r-- | js/src/tests/ecma_5/Object/vacuous-accessor-unqualified-name.js | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/js/src/tests/ecma_5/Object/vacuous-accessor-unqualified-name.js b/js/src/tests/ecma_5/Object/vacuous-accessor-unqualified-name.js new file mode 100644 index 000000000..768b1050b --- /dev/null +++ b/js/src/tests/ecma_5/Object/vacuous-accessor-unqualified-name.js @@ -0,0 +1,26 @@ +/* + * Any copyright is dedicated to the Public Domain. + * http://creativecommons.org/licenses/publicdomain/ + */ + +var gTestfile = 'vacuous-accessor-unqualified-name.js'; +//----------------------------------------------------------------------------- +var BUGNUMBER = 560216; +var summary = + "Using a name referring to a { get: undefined, set: undefined } descriptor " + + "shouldn't assert"; + +print(BUGNUMBER + ": " + summary); + +/************** + * BEGIN TEST * + **************/ + +Object.defineProperty(this, "x", { set: undefined, configurable: true }); +x; + +/******************************************************************************/ + +reportCompare(true, true); + +print("All tests passed!"); |