summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/arguments/rest-disallow-arguments-strict.js
blob: 7f54e5ef7a729ff7d920ce1967c570c28360e468 (plain)
1
2
3
4
5
6
7
8
"use strict";
load(libdir + "asserts.js");
assertThrowsInstanceOf(function () {
    eval("(function (...arguments) {})");
}, SyntaxError);
assertThrowsInstanceOf(function () {
    eval("(function (...eval) {})");
}, SyntaxError);