This repository has been archived by the owner on Jun 10, 2018. It is now read-only.
forked from rails/execjs
-
Notifications
You must be signed in to change notification settings - Fork 46
Question: Test assertion #6
Comments
Its evaled as
https://github.com/sstephenson/execjs/blob/master/lib/execjs/ruby_racer_runtime.rb#L17 |
You are right, my mistake. Bruno Aguirre
|
ExecJS does not support functions as a return type. All return values must be a JSON type. This ensures a consistent api across all the engines. |
Closed
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hello, as you noticed i'm working in the integration with Mustang, some namescope issues where fixed and i'm preparing the commit again, but now i have a question in test/test_runtimes.rb:24 and :10 is this assertion:
"function() {}" works in most of the runtimes but in V8 raises "SyntaxError: Unexpected token (". This assertion is correct? or should be deleted or tested in the SyntaxtError tests?
The text was updated successfully, but these errors were encountered: