Bug 894653 - Self-host Error.prototype.toString, and fix an edge-case bug in the current implementation. r=till

This commit is contained in:
Jeff Walden
2013-07-17 12:14:39 -07:00
parent 3919dcb2ec
commit 2a8c0ef5b9
6 changed files with 85 additions and 82 deletions

View File

@@ -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);