tenfourfox/dom/ipc/tests/process_error_contentscript.js

8 lines
227 B
JavaScript
Raw Normal View History

2017-04-19 07:56:45 +00:00
Components.utils.import("resource://gre/modules/ctypes.jsm");
privateNoteIntentionalCrash();
var zero = new ctypes.intptr_t(8);
var badptr = ctypes.cast(zero, ctypes.PointerType(ctypes.int32_t));
var crash = badptr.contents;