summaryrefslogtreecommitdiffstats
path: root/js/src/tests/ecma_6/Expressions/destructuring-array-default-function.js
blob: 5d2ffef1885ea9694a6fbe40c0e5147342069699 (plain)
1
2
3
4
5
6
7
8
9
10
11
var BUGNUMBER = 1184922;
var summary = "Array destructuring with various default values in various context - function expression";

print(BUGNUMBER + ": " + summary);

testDestructuringArrayDefault("function f() {}");
testDestructuringArrayDefault("function* g() {}");
testDestructuringArrayDefault("() => {}");

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