Bug 830049 - Don't crash when trying to attach caches for property sets on non-native objects, r=dvander.

This commit is contained in:
Brian Hackett 2013-01-14 16:24:27 -07:00
Родитель 336d6d78cf
Коммит e3a99562be
2 изменённых файлов: 13 добавлений и 0 удалений

Просмотреть файл

@ -1435,6 +1435,9 @@ IsPropertySetterCallInlineable(JSContext *cx, HandleObject obj, HandleObject hol
if (!shape)
return false;
if (!holder->isNative())
return false;
if (shape->hasSlot())
return false;

Просмотреть файл

@ -0,0 +1,10 @@
// |jit-test| error: InternalError
p = Proxy.create({
has: function() function r() s += ''
})
Object.prototype.__proto__ = p
function TestCase(n) {
this.name = n
}
new TestCase()