summaryrefslogtreecommitdiff
path: root/fxjs/cfxjse_class.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'fxjs/cfxjse_class.cpp')
-rw-r--r--fxjs/cfxjse_class.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/fxjs/cfxjse_class.cpp b/fxjs/cfxjse_class.cpp
index c35ee4aa29..2a2e0da333 100644
--- a/fxjs/cfxjse_class.cpp
+++ b/fxjs/cfxjse_class.cpp
@@ -95,7 +95,8 @@ void DynPropGetterAdapter_MethodCallback(
CJS_Return result = lpClass->dynMethodCall(info, szFxPropName);
if (result.HasError()) {
- WideString err = JSFormatErrorString(*szPropName, "", result.Error());
+ WideString err =
+ JSFormatErrorString(lpClass->name, *szPropName, result.Error());
v8::MaybeLocal<v8::String> str = v8::String::NewFromUtf8(
info.GetIsolate(), ByteString::FromUnicode(err).c_str(),
v8::NewStringType::kNormal);