mirror of
https://github.com/robertkrimen/otto
synced 2025-10-26 20:28:49 +08:00
@@ -736,7 +736,7 @@ func (runtime *_runtime) newNodeFunction(node *_functionNode, scopeEnvironment _
|
||||
self := runtime.newNodeFunctionObject(node, scopeEnvironment)
|
||||
self.Prototype = runtime.Global.FunctionPrototype
|
||||
prototype := runtime.newObject()
|
||||
self.define(_propertyMode(0), "prototype", toValue(prototype))
|
||||
self.define(_propertyMode(propertyModeWrite), "prototype", toValue(prototype))
|
||||
prototype.define(
|
||||
_propertyMode(propertyModeWrite | propertyModeConfigure),
|
||||
"constructor", toValue(self),
|
||||
|
||||
Reference in New Issue
Block a user