Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion compiler/cpp/src/thrift/generate/t_js_generator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -950,7 +950,8 @@ void t_js_generator::generate_js_struct_definition(ostream& out,
// Call super() method on inherited Error class
if (gen_node_ && is_exception) {
if (gen_es6_) {
indent(out) << "super(args);" << '\n';
indent(out) << "super(\"" << js_namespace(tstruct->get_program())
<< tstruct->get_name() << "\");" << '\n';
} else {
indent(out) << "Thrift.TException.call(this, \"" << js_namespace(tstruct->get_program())
<< tstruct->get_name() << "\");" << '\n';
Expand Down
Loading