diff --git a/js/src/jit-test/tests/gc/bug-1292564.js b/js/src/jit-test/tests/gc/bug-1292564.js deleted file mode 100644 index 5c072b475cf7..000000000000 --- a/js/src/jit-test/tests/gc/bug-1292564.js +++ /dev/null @@ -1,12 +0,0 @@ -// |jit-test| allow-oom - -if (!('oomTest' in this)) - quit(); - -oomTest(() => { - let global = newGlobal(); - Debugger(global).onDebuggerStatement = function (frame) { - frame.eval("f") - } - global.eval("debugger") -}, false); diff --git a/js/src/vm/ScopeObject.h b/js/src/vm/ScopeObject.h index a58cab97dbe8..14c910977c89 100644 --- a/js/src/vm/ScopeObject.h +++ b/js/src/vm/ScopeObject.h @@ -1614,8 +1614,14 @@ AnalyzeEntrainedVariables(JSContext* cx, HandleScript script); namespace JS { template <> -struct DeletePolicy : public js::GCManagedDeletePolicy -{}; +struct DeletePolicy +{ + explicit DeletePolicy(JSRuntime* rt) : rt_(rt) {} + void operator()(const js::DebugScopeObject* ptr); + + private: + JSRuntime* rt_; +}; } // namespace JS