summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/Object/assign/Source-Number-Boolen-Symbol.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/tests/test262/built-ins/Object/assign/Source-Number-Boolen-Symbol.js')
-rw-r--r--js/src/tests/test262/built-ins/Object/assign/Source-Number-Boolen-Symbol.js17
1 files changed, 17 insertions, 0 deletions
diff --git a/js/src/tests/test262/built-ins/Object/assign/Source-Number-Boolen-Symbol.js b/js/src/tests/test262/built-ins/Object/assign/Source-Number-Boolen-Symbol.js
new file mode 100644
index 0000000000..60a851d5f9
--- /dev/null
+++ b/js/src/tests/test262/built-ins/Object/assign/Source-Number-Boolen-Symbol.js
@@ -0,0 +1,17 @@
+// Copyright 2015 Microsoft Corporation. All rights reserved.
+// This code is governed by the license found in the LICENSE file.
+
+/*---
+description: >
+ Number,Boolean,Symbol cannot have own enumerable properties,
+ So cannot be Assigned.Here result should be original object.
+esid: sec-object.assign
+features: [Symbol]
+---*/
+
+var target = new Object();
+var result = Object.assign(target, 123, true, Symbol('foo'));
+
+assert.sameValue(result, target, 'The value of result is expected to equal the value of target');
+
+reportCompare(0, 0);