Bug 1060572 - Skip inner asm.js functions in D.S.p.getChildScripts. (r=jimb)

This commit is contained in:
Shu-yu Guo 2014-09-08 21:03:30 -07:00
parent a14a517250
commit 6a997b1d52

View File

@ -3290,6 +3290,9 @@ DebuggerScript_getChildScripts(JSContext *cx, unsigned argc, Value *vp)
obj = objects->vector[i];
if (obj->is<JSFunction>()) {
fun = &obj->as<JSFunction>();
// The inner function could be an asm.js native.
if (fun->isNative())
continue;
funScript = GetOrCreateFunctionScript(cx, fun);
if (!funScript)
return false;