diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2011-06-29 17:26:51 +0200 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2011-06-29 17:26:51 +0200 |
commit | 33af2720f26c2b25bc7f75ce7eb454ff99db6d35 (patch) | |
tree | 9a38f0c96420edf503eebd6325dd8d2d8249f653 /deps/v8/src/apinatives.js | |
parent | 6afdca885adeeeed9eef8cbb01c3d97af0bc084d (diff) | |
download | node-33af2720f26c2b25bc7f75ce7eb454ff99db6d35.tar.gz |
Upgrade V8 to 3.4.8
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) { |