diff options
Diffstat (limited to 'js/src/jit-test/tests/basic/spread-call-new.js')
-rw-r--r-- | js/src/jit-test/tests/basic/spread-call-new.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/basic/spread-call-new.js b/js/src/jit-test/tests/basic/spread-call-new.js new file mode 100644 index 000000000..dd26ff958 --- /dev/null +++ b/js/src/jit-test/tests/basic/spread-call-new.js @@ -0,0 +1,9 @@ +load(libdir + "eqArrayHelper.js"); + +function g(a, b, c) { + this.value = [a, b, c]; + assertEq(Object.getPrototypeOf(this), g.prototype); + assertEq(arguments.callee, g); +} + +assertEqArray(new g(...[1, 2, 3]).value, [1, 2, 3]); |