mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 723712 - Test for !isCachedEval assertion failure. r=test
--HG-- extra : rebase_source : a88931728024e9045947cee4b3e6a5a82030909d
This commit is contained in:
parent
84fb4992e9
commit
2523b1efe1
23
js/jsd/test/test_evalCached.js
Normal file
23
js/jsd/test/test_evalCached.js
Normal file
@ -0,0 +1,23 @@
|
||||
// This test must be run with debugging already enabled
|
||||
|
||||
function run_test() {
|
||||
const Cc = Components.classes;
|
||||
const Ci = Components.interfaces;
|
||||
const DebuggerService = Cc["@mozilla.org/js/jsd/debugger-service;1"];
|
||||
const jsdIDebuggerService = Ci.jsdIDebuggerService;
|
||||
var jsd = DebuggerService.getService(jsdIDebuggerService);
|
||||
|
||||
do_check_true(jsd.isOn);
|
||||
|
||||
jsd.scriptHook = {
|
||||
onScriptCreated: function(script) {
|
||||
// Just the presence of this will trigger the script to be handed
|
||||
// to JSD and trigger the crash
|
||||
},
|
||||
onScriptDestroyed: function(script) {
|
||||
}
|
||||
}
|
||||
|
||||
eval("4+4");
|
||||
eval("4+4"); // Will be found in the eval cache
|
||||
}
|
@ -4,3 +4,6 @@ tail =
|
||||
|
||||
[test_jsval_retval.js]
|
||||
debug = 1
|
||||
|
||||
[test_evalCached.js]
|
||||
debug = 1
|
||||
|
Loading…
Reference in New Issue
Block a user