Status: New
Owner: ----
New issue 2694 by [email protected]: Function 'length' properties are
initialised to writable in strict mode code
http://code.google.com/p/v8/issues/detail?id=2694
When running in strict mode, V8 is initialising functions with a writable
length property. After checking the specification and the following code
in recent versions (supporting strict mode) of both Firefox and Opera, I've
concluded this is a bug in V8.
Simple example:
(function () {
"use strict";
var someFunction = function () {
}
return Object.getOwnPropertyDescriptor(someFunction,'length');
})()
//-> Object {value: 0, writable: true, enumerable: false, configurable:
false}
Without the "use strict" directive:
(function () {
var someFunction = function () {
}
return Object.getOwnPropertyDescriptor(someFunction,'length');
})()
//-> Object {value: 0, writable: false, enumerable: false,
configurable: false}
Tested with Chrome 28.0.1500.11 dev and V8 (d8) 3.12.3
--
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/groups/opt_out.