diff --git a/js/src/frontend/BytecodeCompiler.cpp b/js/src/frontend/BytecodeCompiler.cpp index 6501bd3fc9e..20c2d73af4d 100644 --- a/js/src/frontend/BytecodeCompiler.cpp +++ b/js/src/frontend/BytecodeCompiler.cpp @@ -190,6 +190,9 @@ frontend::CompileScript(JSContext *cx, HandleObject scopeChain, StackFrame *call parser.freeTree(pn); } + if (tokenStream.hasSourceMap()) + ss->setSourceMap(tokenStream.releaseSourceMap()); + #if JS_HAS_XML_SUPPORT /* * Prevent XML data theft via