mirror of
https://github.com/classilla/tenfourfox.git
synced 2024-08-15 02:29:04 +00:00
Bug 1304641 - TraceLogger: Also throw compartment mismatch error when running in the jits, r=bbouvier
This commit is contained in:
parent
5b2c22f62f
commit
7171345691
13
js/src/jit-test/tests/tracelogger/bug1304641.js
Normal file
13
js/src/jit-test/tests/tracelogger/bug1304641.js
Normal file
@ -0,0 +1,13 @@
|
||||
|
||||
var du = new Debugger();
|
||||
if (typeof du.startTraceLogger === "function") {
|
||||
var failed = false;
|
||||
try {
|
||||
newGlobal().startTraceLogger();
|
||||
print("z");
|
||||
} catch (e) {
|
||||
failed = true;
|
||||
}
|
||||
|
||||
assertEq(failed, true);
|
||||
}
|
@ -256,9 +256,9 @@ TraceLoggerThread::enable(JSContext* cx)
|
||||
|
||||
script = fp->script();
|
||||
engine = TraceLogger_Interpreter;
|
||||
if (script->compartment() != cx->compartment())
|
||||
return fail(cx, "compartment mismatch");
|
||||
}
|
||||
if (script->compartment() != cx->compartment())
|
||||
return fail(cx, "compartment mismatch");
|
||||
|
||||
TraceLoggerEvent event(this, TraceLogger_Scripts, script);
|
||||
startEvent(event);
|
||||
|
Loading…
Reference in New Issue
Block a user