diff --git a/js/src/vm/EnvironmentObject.cpp b/js/src/vm/EnvironmentObject.cpp index 5e259d91fd8f..fa1992227610 100644 --- a/js/src/vm/EnvironmentObject.cpp +++ b/js/src/vm/EnvironmentObject.cpp @@ -1598,8 +1598,7 @@ class DebugEnvironmentProxyHandler : public BaseProxyHandler CallObject& callobj = env->as(); RootedFunction fun(cx, &callobj.callee()); RootedScript script(cx, JSFunction::getOrCreateScript(cx, fun)); - AutoKeepTypeScripts keepTypes(cx); - if (!script->ensureHasTypes(cx, keepTypes) || !script->ensureHasAnalyzedArgsUsage(cx)) { + if (!script->ensureHasAnalyzedArgsUsage(cx)) { return false; }