New JS function: crash(). Generates an access violation.
This was SVN commit r762.
This commit is contained in:
parent
82de48832e
commit
e01f4a540d
@ -150,7 +150,7 @@ JSBool exitProgram(JSContext* context, JSObject* globalObject, unsigned int argc
|
||||
|
||||
JSBool crash(JSContext* context, JSObject* globalObject, unsigned int argc, jsval* argv, jsval* rval)
|
||||
{
|
||||
MICROLOG(L"Crashing.");
|
||||
MICROLOG(L"Crashing at user's request.");
|
||||
uintptr_t ptr = 0xDEADC0DE;
|
||||
return *(JSBool*) ptr;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user