Open
Bug 1288458
Opened 9 years ago
Updated 11 months ago
ArraySpeciesCreate should throw TypeError from GetFunctionRealm if proxy is revoked
Categories
(Core :: JavaScript Engine, defect, P3)
Core
JavaScript Engine
Tracking
()
NEW
Tracking | Status | |
---|---|---|
firefox50 | --- | affected |
People
(Reporter: anba, Unassigned)
References
(Blocks 1 open bug)
Details
(Keywords: triage-deferred)
Test case:
---
var x = Proxy.revocable(function(){}, {});
var c = new Proxy(x.proxy, new Proxy({}, {
get(t, pk, r) {
// Should not [[Get]] Symbol.species.
print("TRAP", pk);
}
}));
var a = [];
a.constructor = c;
x.revoke();
a.slice(0);
---
Expected: "TRAP get" is not printed
Actual: "TRAP get" is printed
Spec:
9.4.2.3 ArraySpeciesCreate, step 6.b [https://tc39.github.io/ecma262/#sec-arrayspeciescreate]
7.3.22 GetFunctionRealm, step 4.a [https://tc39.github.io/ecma262/#sec-getfunctionrealm]
Updated•7 years ago
|
Keywords: triage-deferred
Priority: -- → P3
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•