mirror of
https://github.com/robertkrimen/otto
synced 2025-10-26 20:28:49 +08:00
Allow (internal) enumeration through _every_ Object property
For .freeze, .isFrozen, etc.
This commit is contained in:
@@ -216,7 +216,7 @@ func (self *_runtime) evaluateForIn(node *_forInNode) Value {
|
||||
result := emptyValue()
|
||||
object := sourceObject
|
||||
for object != nil {
|
||||
object.enumerate(func(name string) {
|
||||
object.enumerate(false, func(name string) {
|
||||
into := self.evaluate(into)
|
||||
// In the case of: for (var abc in def) ...
|
||||
if into.reference() == nil {
|
||||
|
||||
Reference in New Issue
Block a user