JS codegen: produce better code for constant sets

This commit is contained in:
Andreas Rumpf 2017-05-01 09:30:56 +02:00
commit 56a5c249c9
2 changed files with 9 additions and 3 deletions

View file

@ -172,7 +172,7 @@ proc raiseIndexError() {.compilerproc, noreturn.} =
proc raiseFieldError(f: string) {.compilerproc, noreturn.} =
raise newException(FieldError, f & " is not accessible")
proc SetConstr() {.varargs, asmNoStackFrame, compilerproc.} =
proc setConstr() {.varargs, asmNoStackFrame, compilerproc.} =
when defined(nimphp):
asm """
$args = func_get_args();