summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Source/Modules/javascript.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/Modules/javascript.cxx b/Source/Modules/javascript.cxx
index 50d7a7cef..17ba4f766 100644
--- a/Source/Modules/javascript.cxx
+++ b/Source/Modules/javascript.cxx
@@ -1133,9 +1133,8 @@ int JSEmitter::emitConstant(Node *n) {
Wrapper *wrapper = NewWrapper();
SwigType *type = Getattr(n, "type");
- String *name = Getattr(n, "name");
String *iname = Getattr(n, "sym:name");
- String *wname = Swig_name_wrapper(name);
+ String *wname = Swig_name_get(Getattr(current_namespace, NAME_MANGLED), iname);
String *rawval = Getattr(n, "rawval");
String *value = rawval ? rawval : Getattr(n, "value");