Status: New
Owner: ----

New issue 1643 by [email protected]: Behavior of "caller" on built in functions violates the ES5.1 spec
http://code.google.com/p/v8/issues/detail?id=1643

[whitespace and newlines inserted below for readability. Extraneous text replaced with "...".

$ v8
V8 version 3.5.4 (candidate) [console: dumb]
d8> var map = [].map;
d8> function testMapCaller(callback) { return [1].map(callback)[0]; }
d8> function describeMapCaller() {
          var desc = Object.getOwnPropertyDescriptor(map, 'caller');
return [map.caller, desc.value, desc.writable, desc.configurable].join();
        }
d8> describeMapCaller();
,,false,false
d8> testMapCaller(describeMapCaller);
function testMapCaller...,function testMapCaller...,false,false
d8>

The above trace shows that the value changed after a property described itself as non-writable and non-configurable.

Related to issue 1548.


--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to