@@ -49,7 +49,7 @@ public void functionDefaultArgsUsage() throws Exception {
49
49
}
50
50
51
51
@ Test
52
- // @Ignore("temporal-dead-zone")
52
+ @ Ignore ("temporal-dead-zone" )
53
53
public void functionDefaultArgsMultiFollowUsage () throws Exception {
54
54
final String script =
55
55
"function f(a = go()) {\n "
@@ -66,7 +66,7 @@ public void functionDefaultArgsMultiFollowUsage() throws Exception {
66
66
}
67
67
68
68
@ Test
69
- // @Ignore("temporal-dead-zone")
69
+ @ Ignore ("temporal-dead-zone" )
70
70
public void functionDefaultArgsMultiReferEarlier () throws Exception {
71
71
final String script = "var f = function(a = b * 2, b = 3) { return a * b; }\n " ;
72
72
assertThrows ("ReferenceError: \" b\" is not defined." , script + "\n f()" );
@@ -81,10 +81,12 @@ public void functionConstructor() throws Exception {
81
81
}
82
82
83
83
@ Test
84
+ @ Ignore ("destructuring-not-supported" )
84
85
public void destructuringAssigmentDefaultArray () throws Exception {
85
- final String script = "function f([x = 1, y = 2] = [], [z = 1] = [4]) {\n " +
86
- " return x + y + z;\n " +
87
- "}" ;
86
+ final String script =
87
+ "function f([x = 1, y = 2] = [], [z = 1] = [4]) {\n "
88
+ + " return x + y + z;\n "
89
+ + "}" ;
88
90
89
91
assertIntEvaluates (3 , script + "f()" );
90
92
assertIntEvaluates (3 , script + "f([])" );
@@ -93,32 +95,29 @@ public void destructuringAssigmentDefaultArray() throws Exception {
93
95
}
94
96
95
97
@ Test
98
+ @ Ignore ("destructuring-not-supported" )
96
99
public void destructuringAssigmentBasicArray () throws Exception {
97
- final String script = "function f([x = 1] = [2]) {\n " +
98
- " return x;\n " +
99
- "}" ;
100
+ final String script = "function f([x = 1] = [2]) {\n " + " return x;\n " + "}" ;
100
101
101
- // assertIntEvaluates(1, script + "f([])");
102
+ // assertIntEvaluates(1, script + "f([])");
102
103
assertIntEvaluates (2 , script + "f()" );
103
- // assertIntEvaluates(3, script + "f([3])");
104
+ // assertIntEvaluates(3, script + "f([3])");
104
105
}
105
106
106
107
@ Test
108
+ @ Ignore ("destructuring-not-supported" )
107
109
public void destructuringAssigmentBasicObject () throws Exception {
108
- final String script = "function f({x = 1} = {x: 2}) {\n " +
109
- " return x;\n " +
110
- "}" ;
110
+ final String script = "function f({x = 1} = {x: 2}) {\n " + " return x;\n " + "}" ;
111
111
112
112
assertIntEvaluates (1 , script + "f({})" );
113
113
assertIntEvaluates (2 , script + "f()" );
114
114
assertIntEvaluates (3 , script + "f({x: 3})" );
115
115
}
116
116
117
117
@ Test
118
+ @ Ignore ("destructuring-not-supported" )
118
119
public void destructuringAssigmentDefaultObject () throws Exception {
119
- final String script = "function f({ z = 3, x = 2 } = {}) {\n " +
120
- " return z;\n " +
121
- "}\n " ;
120
+ final String script = "function f({ z = 3, x = 2 } = {}) {\n " + " return z;\n " + "}\n " ;
122
121
assertIntEvaluates (3 , script + "f()" );
123
122
assertIntEvaluates (3 , script + "f({})" );
124
123
assertIntEvaluates (2 , script + "f({z: 2})" );
0 commit comments