Skip to content

Commit

Permalink
Bug 637397 - Set runtime debug mode in js shell with -d (r=sfink,a=np…
Browse files Browse the repository at this point in the history
…otb)

--HG--
extra : rebase_source : fd6868299f8998769eaaa5a7a985296099c8961d
  • Loading branch information
Luke Wagner committed Feb 28, 2011
1 parent d9793b4 commit 80d8dbf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions js/src/jit-test/tests/jaeger/bug563000/untrap-cross-global.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// |jit-test| debug

var otherGlobal = newGlobal('new-compartment');
var f = otherGlobal.untrap;
f();
1 change: 1 addition & 0 deletions js/src/shell/js.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -910,6 +910,7 @@ ProcessArgs(JSContext *cx, JSObject *obj, char **argv, int argc)
break;

case 'd':
JS_SetRuntimeDebugMode(JS_GetRuntime(cx), JS_TRUE);
JS_SetDebugMode(cx, JS_TRUE);
break;

Expand Down

0 comments on commit 80d8dbf

Please sign in to comment.