ghcjs / ghcjs-base

base library for GHCJS for JavaScript interaction and marshalling, used by higher level libraries like JSC
MIT License
45 stars 67 forks source link

Fix typo in JavaScript.Web.MessageEvent.js_getData #45

Closed wereHamster closed 8 years ago

wereHamster commented 8 years ago

Otherwise the code does not compile:

Parse error in FFI pattern: $r2 = $1.data;$r1 = typeof $r2 === 'string' ? 1 : ($r2 instanceof ArrayBuffer ? 2 : 3
(line 1, column 86):
unexpected end of input
expecting digit, ".", value, "`(", "`", "(", "new", operator, "?" or ")"
luite commented 8 years ago

thanks, i think dead code elimination masked this error earlier on.