diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2011-07-08 16:40:11 -0700 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2011-07-08 16:40:11 -0700 |
commit | e5564a3f29e0a818832a97c7c3b28d7c8b3b0460 (patch) | |
tree | 4b48a6577080d5e44da4d2cbebb7fe7951660de8 /deps/v8/src/apinatives.js | |
parent | 0df2f74d364826053641395b01c2fcb1345057a9 (diff) | |
download | node-e5564a3f29e0a818832a97c7c3b28d7c8b3b0460.tar.gz |
Upgrade V8 to 3.4.10
Diffstat (limited to 'deps/v8/src/apinatives.js')
-rw-r--r-- | deps/v8/src/apinatives.js | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/deps/v8/src/apinatives.js b/deps/v8/src/apinatives.js index ca2bbf5c5..193863f5c 100644 --- a/deps/v8/src/apinatives.js +++ b/deps/v8/src/apinatives.js @@ -73,7 +73,15 @@ function InstantiateFunction(data, name) { if (name) %FunctionSetName(fun, name); cache[serialNumber] = fun; var prototype = %GetTemplateField(data, kApiPrototypeTemplateOffset); - fun.prototype = prototype ? Instantiate(prototype) : {}; + var attributes = %GetTemplateField(data, kApiPrototypeAttributesOffset); + if (attributes != NONE) { + %IgnoreAttributesAndSetProperty( + fun, "prototype", + prototype ? Instantiate(prototype) : {}, + attributes); + } else { + fun.prototype = prototype ? Instantiate(prototype) : {}; + } %SetProperty(fun.prototype, "constructor", fun, DONT_ENUM); var parent = %GetTemplateField(data, kApiParentTemplateOffset); if (parent) { |