mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-11 10:08:41 +00:00
Fixing bug 484040. Don't fall off trace when accessing 'document' in JS. r+sr=mrbkap@gmail.com
This commit is contained in:
parent
a6c07d5e6a
commit
9727259a12
@ -8203,8 +8203,9 @@ nsDocumentSH::PostCreate(nsIXPConnectWrappedNative *wrapper, JSContext *cx,
|
||||
if (!::JS_DefineUCProperty(cx, JSVAL_TO_OBJECT(winVal),
|
||||
reinterpret_cast<const jschar *>
|
||||
(doc_str.get()),
|
||||
doc_str.Length(), OBJECT_TO_JSVAL(obj), nsnull,
|
||||
nsnull, JSPROP_READONLY | JSPROP_ENUMERATE)) {
|
||||
doc_str.Length(), OBJECT_TO_JSVAL(obj),
|
||||
JS_PropertyStub, JS_PropertyStub,
|
||||
JSPROP_READONLY | JSPROP_ENUMERATE)) {
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user