Comment #2 on 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
This is observable using iframes, test case from the linked
bugs.ecmascript.org report:
---
<!doctype html>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
</head>
<body>
<iframe id="iframe"></iframe>
<script type="text/javascript">
(function(){
"use strict";
var global = window;
var otherGlobal = document.getElementById("iframe").contentWindow;
var f = otherGlobal.eval("(function f(){})");
f.prototype = null;
var o = new f();
var proto = Object.getPrototypeOf(o);
alert([
proto === global.Object.prototype,
proto === otherGlobal.Object.prototype,
]);
})();
</script>
</body>
</html>
---
--
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.