Index: src/js/messages.js |
diff --git a/src/js/messages.js b/src/js/messages.js |
index be33ff759b79dd0945f529636d881958f14924bc..5d898c7cafcfaed6a6085030319c65f3eeefa19f 100644 |
--- a/src/js/messages.js |
+++ b/src/js/messages.js |
@@ -633,7 +633,6 @@ function CallSiteGetFunctionName() { |
if (HAS_PRIVATE(this, callSiteWasmObjectSymbol)) { |
var wasm = GET_PRIVATE(this, callSiteWasmObjectSymbol); |
var func_index = GET_PRIVATE(this, callSiteWasmFunctionIndexSymbol); |
Yang
2016/05/13 07:41:10
CallSiteGetFunctionName is accessible from the sta
Clemens Hammacher
2016/05/17 17:43:24
I was assuming that it would be nice for users to
|
- if (IS_UNDEFINED(wasm)) return "<WASM>"; |
return %WasmGetFunctionName(wasm, func_index); |
} |
return %CallSiteGetFunctionNameRT(this); |
@@ -679,7 +678,8 @@ function CallSiteToString() { |
var funName = this.getFunctionName(); |
var funcIndex = GET_PRIVATE(this, callSiteWasmFunctionIndexSymbol); |
var pos = this.getPosition(); |
- return funName + " (<WASM>:" + funcIndex + ":" + pos + ")"; |
+ if (IS_UNDEFINED(funName)) funName = "<WASM UNNAMED>"; |
+ return funName + " (<WASM>[" + funcIndex + "]+" + pos + ")"; |
Yang
2016/05/13 07:41:10
So we could get a return value like "<WASM UNNAMED
Clemens Hammacher
2016/05/17 17:43:24
Yes.
|
} |
var fileName; |