diff --git a/lib/v8/error.rb b/lib/v8/error.rb index 5efa480..2c25bb8 100644 --- a/lib/v8/error.rb +++ b/lib/v8/error.rb @@ -106,7 +106,7 @@ module V8 #in these instances, we have to pull it out of the Message object #in the TryCatch. Is there a better way to detect a syntax error def syntax_error?(try) - ex = try.Exception() + ex = @to.rb(try.Exception()) if ex && ex.kind_of?(V8::Object) type = ex["constructor"] type && type.kind_of?(V8::Function) && type.name == "SyntaxError"