mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 861419 - Consider values in prototype when reading global names during Ion compilation.
This commit is contained in:
parent
09310478d5
commit
045c325da9
@ -5636,6 +5636,8 @@ IonBuilder::jsop_getgname(HandlePropertyName name)
|
||||
// or non-writable.
|
||||
return jsop_getname(name);
|
||||
}
|
||||
if (!propertyTypes->hasPropagatedProperty())
|
||||
globalType->getFromPrototypes(cx, id, propertyTypes);
|
||||
|
||||
// If the property is permanent, a shape guard isn't necessary.
|
||||
|
||||
|
17
js/src/jit-test/tests/ion/bug861419.js
Normal file
17
js/src/jit-test/tests/ion/bug861419.js
Normal file
@ -0,0 +1,17 @@
|
||||
|
||||
try {
|
||||
arguments.toSource = (function() {
|
||||
__proto__.y = x
|
||||
})
|
||||
y = this
|
||||
print(x = 8)
|
||||
a = arguments
|
||||
for (v of this) {}
|
||||
} catch (e) {}
|
||||
function f() {
|
||||
"HELLO " + y
|
||||
}
|
||||
f()
|
||||
f()
|
||||
y = 1[7]
|
||||
f()
|
Loading…
Reference in New Issue
Block a user