summaryrefslogtreecommitdiffstats
path: root/js/src/tests/non262/expressions/destructuring-array-default-simple.js
blob: 50c6c37f3dc601b396831f5f61f29b2ee21af2ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
var BUGNUMBER = 1184922;
var summary = "Array destructuring with various default values in various context - simple literal";

print(BUGNUMBER + ": " + summary);

testDestructuringArrayDefault("'foo'");
testDestructuringArrayDefault("`foo`");
testDestructuringArrayDefault("func`foo`");

testDestructuringArrayDefault("/foo/");

testDestructuringArrayDefault("{}");
testDestructuringArrayDefault("[]");

if (typeof reportCompare === "function")
  reportCompare(true, true);