зеркало из https://github.com/mozilla/gecko-dev.git
Bug 639737 - JS_THIS_OBJECT can fail and we need to catch when it does. r=jst
--HG-- extra : rebase_source : 0ecd6f2666c506bbf5837ef14092fcb47c8e5b3b
This commit is contained in:
Родитель
7b9ec4b694
Коммит
310733626a
|
@ -0,0 +1,19 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<script>
|
||||
|
||||
function b() {
|
||||
try { sset("u"); } catch(e) { }
|
||||
try { [0].map(b); } catch(e) { }
|
||||
}
|
||||
|
||||
var sset = document.documentElement.style.__lookupSetter__("textIndent");
|
||||
b();
|
||||
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body></body>
|
||||
</html>
|
||||
|
|
@ -29,3 +29,4 @@ load 558979.html
|
|||
load 582649.html
|
||||
load 603858-1.html
|
||||
load 608963.html
|
||||
load 639737-1.html
|
||||
|
|
|
@ -148,6 +148,8 @@ PropertyOpForwarder(JSContext *cx, uintN argc, jsval *vp)
|
|||
|
||||
JSObject *callee = JSVAL_TO_OBJECT(JS_CALLEE(cx, vp));
|
||||
JSObject *obj = JS_THIS_OBJECT(cx, vp);
|
||||
if (!obj)
|
||||
return JS_FALSE;
|
||||
jsval v;
|
||||
|
||||
if(!JS_GetReservedSlot(cx, callee, 0, &v))
|
||||
|
|
Загрузка…
Ссылка в новой задаче