Skip to content

Commit 4a6df8d

Browse files
committed
Fix isAssociativeArrayLiteral for CI
Just calling parseAssignExpression instead of parseExpression in AA checking now, since that's what's being done in the parsing code anyway! Doubled the debug stack limit. Should really investigate what's broken here, since this stack usage is way too much.
1 parent 3c67b88 commit 4a6df8d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/dparse/parser.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8400,7 +8400,7 @@ protected: final:
84008400
immutable b = setBookmark();
84018401
scope(exit) goToBookmark(b);
84028402
advance();
8403-
immutable bool result = !currentIs(tok!"]") && parseExpression() !is null && currentIs(tok!":");
8403+
immutable bool result = !currentIs(tok!"]") && parseAssignExpression() !is null && currentIs(tok!":");
84048404
cachedAAChecks[currentIndex] = result;
84058405
return result;
84068406
}

test/tester.d

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -310,9 +310,9 @@ int main(string[] args)
310310
// increase stack size in case of segfault:
311311
// stack usage in debug / non-optimized mode is _much_ higher
312312
version (D_Coverage)
313-
enum maxStackSize = 256 * 4096;
313+
enum maxStackSize = 512 * 4096;
314314
else debug
315-
enum maxStackSize = 256 * 4096;
315+
enum maxStackSize = 512 * 4096;
316316
else
317317
enum maxStackSize = 40 * 4096;
318318

0 commit comments

Comments
 (0)