Index: src/js/messages.js |
diff --git a/src/js/messages.js b/src/js/messages.js |
index be33ff759b79dd0945f529636d881958f14924bc..cf8345eb037cd6489aab5f36f6bad0ba3dc16099 100644 |
--- a/src/js/messages.js |
+++ b/src/js/messages.js |
@@ -630,12 +630,6 @@ function CallSiteGetScriptNameOrSourceURL() { |
function CallSiteGetFunctionName() { |
// See if the function knows its own name |
CheckCallSite(this, "getFunctionName"); |
- if (HAS_PRIVATE(this, callSiteWasmObjectSymbol)) { |
- var wasm = GET_PRIVATE(this, callSiteWasmObjectSymbol); |
- var func_index = GET_PRIVATE(this, callSiteWasmFunctionIndexSymbol); |
- if (IS_UNDEFINED(wasm)) return "<WASM>"; |
- return %WasmGetFunctionName(wasm, func_index); |
- } |
return %CallSiteGetFunctionNameRT(this); |
} |
@@ -679,7 +673,8 @@ function CallSiteToString() { |
var funName = this.getFunctionName(); |
var funcIndex = GET_PRIVATE(this, callSiteWasmFunctionIndexSymbol); |
var pos = this.getPosition(); |
- return funName + " (<WASM>:" + funcIndex + ":" + pos + ")"; |
+ if (IS_NULL(funName)) funName = "<WASM UNNAMED>"; |
+ return funName + " (<WASM>[" + funcIndex + "]+" + pos + ")"; |
} |
var fileName; |