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
Compiler generates string literals with octal escapes when record labels contain international characters and at the same time are not valid javascript identifiers. In most parts the compiler uses hexadecimal escapes which do not cause runtime errors.
SyntaxError: Octal literals are not allowed in strict mode.
at exports.runInThisContext (vm.js:73:16)
at Module._compile (module.js:443:25)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at [eval]:1:1
at Object.exports.runInThisContext (vm.js:74:17)
at Object.<anonymous> ([eval]-wrapper:6:22)
The text was updated successfully, but these errors were encountered:
Ok, scratch that, the issue is that the generated JS is not encoded as UTF-8.
paf31
changed the title
Octal literals in derived Generic typeclass instances crash program in strict mode
Regression related to unicode identifiers
Nov 20, 2015
Compiler generates string literals with octal escapes when record labels contain international characters and at the same time are not valid javascript identifiers. In most parts the compiler uses hexadecimal escapes which do not cause runtime errors.
psc version 0.7.4.1
The following works:
related part from compiled typeclass js
This fails however:
related js
using node 0.12 results in
The text was updated successfully, but these errors were encountered: