summaryrefslogtreecommitdiffstats
path: root/js/src/tests/non262/expressions/destructuring-array-default-function-nested.js
blob: 99260b9895f336bd84e17f745179306dc1164739 (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 with nested objects";

print(BUGNUMBER + ": " + summary);

testDestructuringArrayDefault("function f() { return { f() {}, *g() {}, r: /a/ }; }");
testDestructuringArrayDefault("function* g() { return { f() {}, *g() {}, r: /b/ }; }");
testDestructuringArrayDefault("() => { return { f() {}, *g() {}, r: /c/ }; }");

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