Skip to content

Commit 174d48a

Browse files
Fix some parts of for-each invariant checking.
1 parent b6249d0 commit 174d48a

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

src/harness/test262Runner.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,19 @@ class Test262BaselineRunner extends RunnerBase {
4242
var childNodesAndArrays: any[] = [];
4343
ts.forEachChild(node, child => { childNodesAndArrays.push(child) }, array => { childNodesAndArrays.push(array) });
4444

45+
/*
46+
parent?: Node; // Parent node (initialized by binding)
47+
symbol?: Symbol; // Symbol declared by node (initialized by binding)
48+
locals?: SymbolTable; // Locals associated with node (initialized by binding)
49+
nextContainer?: Node; // Next container in declaration order (initialized by binding)
50+
localSymbol?: Symbol; // Local symbol declared by node (initialized by binding only for exported nodes)
51+
modifiers?: ModifiersArray; // Array of modifiers
52+
*/
53+
4554
for (var childName in node) {
55+
if (childName === "parent" || childName === "nextContainer" || childName === "modifiers") {
56+
continue;
57+
}
4658
var child = (<any>node)[childName];
4759
if (Test262BaselineRunner.isNodeOrArray(child)) {
4860
if (childNodesAndArrays.indexOf(child) < 0) {

0 commit comments

Comments
 (0)