| Index: src/apinatives.js
|
| diff --git a/src/apinatives.js b/src/apinatives.js
|
| index dda1d24bab2b2014ffd6aabf1eb20914f3924424..3e38d100358041fe50536bf4523592ad311fe430 100644
|
| --- a/src/apinatives.js
|
| +++ b/src/apinatives.js
|
| @@ -72,7 +72,7 @@ function InstantiateFunction(data, name) {
|
| }
|
| }
|
| var fun = %CreateApiFunction(data, prototype);
|
| - if (name) %FunctionSetName(fun, name);
|
| + if (IS_STRING(name)) %FunctionSetName(fun, name);
|
| var doNotCache = flags & (1 << kDoNotCacheBit);
|
| if (!doNotCache) cache[serialNumber] = fun;
|
| ConfigureTemplateInstance(fun, data);
|
|
|