| Index: src/apinatives.js
|
| ===================================================================
|
| --- src/apinatives.js (revision 8618)
|
| +++ src/apinatives.js (working copy)
|
| @@ -73,7 +73,15 @@
|
| 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) {
|
|
|