summaryrefslogtreecommitdiff
path: root/test/built-ins/Object/defineProperties/15.2.3.7-6-a-288.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/Object/defineProperties/15.2.3.7-6-a-288.js')
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-288.js34
1 files changed, 17 insertions, 17 deletions
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-288.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-288.js
index 0bcc9bc3e..b2ed708b4 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-288.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-288.js
@@ -16,36 +16,36 @@ includes: [propertyHelper.js]
var arg;
(function fun(a, b, c) {
- arg = arguments;
+ arg = arguments;
}(0, 1, 2));
function get_func() {
- return 0;
+ return 0;
}
Object.defineProperty(arg, "0", {
- get: get_func,
- enumerable: true,
- configurable: false
+ get: get_func,
+ enumerable: true,
+ configurable: false
});
try {
- Object.defineProperties(arg, {
- "0": {
- enumerable: false
- }
- });
+ Object.defineProperties(arg, {
+ "0": {
+ enumerable: false
+ }
+ });
- $ERROR("Expected an exception.");
+ $ERROR("Expected an exception.");
} catch (e) {
- verifyEqualTo(arg, "0", get_func());
+ verifyEqualTo(arg, "0", get_func());
- verifyEnumerable(arg, "0");
+ verifyEnumerable(arg, "0");
- verifyNotConfigurable(arg, "0");
+ verifyNotConfigurable(arg, "0");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}