You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Sources/Fuzzilli/Compiler/Compiler.swift
+13-11Lines changed: 13 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -238,7 +238,8 @@ public class JavaScriptCompiler {
238
238
tryenterNewScope{
239
239
varparameters= head.innerOutputs
240
240
map("this", to: parameters.removeFirst())
241
-
mapParameters([setter.parameter], to: parameters)
241
+
map(setter.parameter.name, to: parameters.removeFirst())
242
+
assert(parameters.isEmpty)
242
243
forstatementin setter.body {
243
244
trycompileStatement(statement)
244
245
}
@@ -511,7 +512,7 @@ public class JavaScriptCompiler {
511
512
emit(EndForOfLoop())
512
513
513
514
case.breakStatement:
514
-
// If we're in both .loop and .switch context, then the loop must be the most recent context
515
+
// If we're in both .loop and .switch context, then the loop must be the most recent context
515
516
// (switch blocks don't propagate an outer .loop context) so we just need to check for .loop here
516
517
if contextAnalyzer.context.contains(.loop){
517
518
emit(LoopBreak())
@@ -565,14 +566,14 @@ public class JavaScriptCompiler {
565
566
emit(EndWith())
566
567
case.switchStatement(let switchStatement):
567
568
// TODO Replace the precomputation of tests with compilation of the test expressions in the cases.
568
-
// To do this, we would need to redesign Switch statements in FuzzIL to (for example) have a BeginSwitchCaseHead, BeginSwitchCaseBody, and EndSwitchCase.
569
+
// To do this, we would need to redesign Switch statements in FuzzIL to (for example) have a BeginSwitchCaseHead, BeginSwitchCaseBody, and EndSwitchCase.
569
570
// Then the expression would go inside the header.
0 commit comments