summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/Reflect/apply/return-target-call-result.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/tests/test262/built-ins/Reflect/apply/return-target-call-result.js')
-rw-r--r--js/src/tests/test262/built-ins/Reflect/apply/return-target-call-result.js26
1 files changed, 26 insertions, 0 deletions
diff --git a/js/src/tests/test262/built-ins/Reflect/apply/return-target-call-result.js b/js/src/tests/test262/built-ins/Reflect/apply/return-target-call-result.js
new file mode 100644
index 0000000000..a577540e1b
--- /dev/null
+++ b/js/src/tests/test262/built-ins/Reflect/apply/return-target-call-result.js
@@ -0,0 +1,26 @@
+// Copyright (C) 2015 the V8 project authors. All rights reserved.
+// This code is governed by the BSD license found in the LICENSE file.
+/*---
+es6id: 26.1.1
+description: >
+ Return target result
+info: |
+ 26.1.1 Reflect.apply ( target, thisArgument, argumentsList )
+
+ ...
+ 4. Perform PrepareForTailCall().
+ 5. Return Call(target, thisArgument, args).
+features: [Reflect]
+---*/
+
+var o = {};
+
+function fn() {
+ return o;
+}
+
+var result = Reflect.apply(fn, 1, []);
+
+assert.sameValue(result, o);
+
+reportCompare(0, 0);