Bug 894653 - Self-host Error.prototype.toString, and fix an edge-case bug in the current implementation. r=till
This commit is contained in:
@@ -112,7 +112,12 @@ BEGIN_TEST(testChromeBuffer)
|
||||
const char *bytes = "try { "
|
||||
" untrusted(); "
|
||||
"} catch (e) { "
|
||||
" return 'From trusted: ' + e; "
|
||||
" /* "
|
||||
" * Careful! We must not reenter JS "
|
||||
" * that might try to push a frame. "
|
||||
" */ "
|
||||
" return 'From trusted: ' + "
|
||||
" e.name + ': ' + e.message; "
|
||||
"} ";
|
||||
JS::HandleObject global = JS::HandleObject::fromMarkedLocation(trusted_glob.unsafeGet());
|
||||
JS::CompileOptions options(cx);
|
||||
|
||||
Reference in New Issue
Block a user