Closed
Description
Code:
require "js"
p 24 == JS.eval("return 24;")
Result:
<anonymous>': eval:3:in `==': wrong argument type Integer (expected jsvalue) (TypeError)
eval:3:in `=='
eval:3:in `<main>'
Hmmm the equal operator causing errors is so inconvenient and unpredictable.
Can you return the value or at least improve it to a clear error message?
Metadata
Metadata
Assignees
Labels
No labels