Status: Untriaged
Owner: ----
New issue 4217 by [email protected]: |new| should construct
objects from function instead of caller realm
https://code.google.com/p/v8/issues/detail?id=4217
Version: 7142b0d211b732e1c119fded80f43fbbd9cea0f8
What steps will reproduce the problem?
1. Run in d8
(function(){
"use strict";
var realmIndex = Realm.create();
var otherObject = Realm.eval(realmIndex, "Object");
var f = Realm.eval(realmIndex, "(function f(){})");
f.prototype = null;
var o = new f();
var proto = Object.getPrototypeOf(o);
print([
proto === Object.prototype,
proto === otherObject.prototype,
]);
})();
What is the expected output?
- Prints: "false, true"
What do you see instead?
- Prints: "true, false"
Previous discussion with html test case:
https://bugs.ecmascript.org/show_bug.cgi?id=3692
Spec: ES2015, 9.1.15 GetPrototypeFromConstructor(), step 5
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.