Status: New
Owner: ----
New issue 3966 by [email protected]: Object.{isExtensible, isFrozen,
isSealed}(non-object) throws TypeError in violation of spec
https://code.google.com/p/v8/issues/detail?id=3966
19.1.2.11 Object.isExtensible ( O )
https://people.mozilla.org/~jorendorff/es6-draft.html#sec-object.isextensible
1. If Type(O) is not Object, return false.
19.1.2.12 Object.isFrozen ( O )
https://people.mozilla.org/~jorendorff/es6-draft.html#sec-object.isfrozen
1. If Type(O) is not Object, return true.
19.1.2.13 Object.isSealed ( O )
https://people.mozilla.org/~jorendorff/es6-draft.html#sec-object.issealed
1. If Type(O) is not Object, return true.
The correct results:
Object.isFrozen(undefined) => true
Object.isFrozen(null) => true
Object.isFrozen(true) => true
Object.isFrozen(false) => true
Object.isFrozen(1) => true
Object.isFrozen("") => true
let sym = Symbol("desc");
Object.isFrozen(sym) => true
Object.isExtensible(undefined) => false
Object.isExtensible(null) => false
Object.isExtensible(true) => false
Object.isExtensible(false) => false
Object.isExtensible(1) => false
Object.isExtensible("") => false
let sym = Symbol("desc");
Object.isExtensible(sym) => false
Object.isSealed(undefined) => true
Object.isSealed(null) => true
Object.isSealed(true) => true
Object.isSealed(false) => true
Object.isSealed(1) => true
Object.isSealed("") => true
let sym = Symbol("desc");
Object.isSealed(sym) => true
--
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.