summaryrefslogtreecommitdiff
path: root/test/built-ins/Object/defineProperties/15.2.3.7-6-a-306.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/Object/defineProperties/15.2.3.7-6-a-306.js')
-rw-r--r--test/built-ins/Object/defineProperties/15.2.3.7-6-a-306.js36
1 files changed, 18 insertions, 18 deletions
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-306.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-306.js
index 14968edc0..e1ae25ad5 100644
--- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-306.js
+++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-306.js
@@ -11,35 +11,35 @@ description: >
includes: [propertyHelper.js]
---*/
-var arg = (function() {
- return arguments;
+var arg = (function () {
+ return arguments;
}(1, 2, 3));
Object.defineProperty(arg, "genericProperty", {
- value: 1001,
- writable: false,
- configurable: false
+ value: 1001,
+ writable: false,
+ configurable: false
});
try {
- Object.defineProperties(arg, {
- "genericProperty": {
- value: 1002
- }
- });
+ Object.defineProperties(arg, {
+ "genericProperty": {
+ value: 1002
+ }
+ });
- $ERROR("Expected an exception.");
+ $ERROR("Expected an exception.");
} catch (e) {
- verifyEqualTo(arg, "genericProperty", 1001);
+ verifyEqualTo(arg, "genericProperty", 1001);
- verifyNotWritable(arg, "genericProperty");
+ verifyNotWritable(arg, "genericProperty");
- verifyNotEnumerable(arg, "genericProperty");
+ verifyNotEnumerable(arg, "genericProperty");
- verifyNotConfigurable(arg, "genericProperty");
+ verifyNotConfigurable(arg, "genericProperty");
- if (!(e instanceof TypeError)) {
- $ERROR("Expected TypeError, got " + e);
- }
+ if (!(e instanceof TypeError)) {
+ $ERROR("Expected TypeError, got " + e);
+ }
}