static bool SetSourceMap(ExclusiveContext *cx, TokenStream &tokenStream, ScriptSource *ss) { if (tokenStream.hasSourceMap()) { if (!ss->setSourceMap(cx, tokenStream.releaseSourceMap())) return false; } return true; }
static bool SetSourceMap(JSContext *cx, TokenStream &tokenStream, ScriptSource *ss, JSScript *script) { if (tokenStream.hasSourceMap()) { if (!ss->setSourceMap(cx, tokenStream.releaseSourceMap(), script->filename())) return false; } return true; }