1
0
Fork 0
mirror of https://github.com/rubyjs/therubyracer synced 2023-03-27 23:21:42 -04:00

Add the source name and line number to errors.

This commit is contained in:
Charles Lowell 2010-02-26 21:46:02 -06:00
parent 408b9c496f
commit 0dbdd0c529

View file

@ -79,7 +79,7 @@ module V8
end
class JavascriptError < StandardError
def initialize(v8_message)
super("#{v8_message.Get()}: #{v8_message.GetSourceLine()}")
super("#{v8_message.Get()}: #{v8_message.GetScriptResourceName()}:#{v8_message.GetLineNumber()}")
@native = v8_message
end