Status: Unconfirmed Owner: [email protected] Labels: Type-Bug Pri-2 OS-All Area-Misc
New issue 5653 by alastairpatrick: Cannot invoke NPObject as constructor from JavaScript http://code.google.com/p/chromium/issues/detail?id=5653 Chrome Version : 1.0.154.36 URLs (if applicable) : Other browsers tested: Firefox Add OK or FAIL after other browsers where you have tested this issue: Safari 3: Unknown Firefox 3: OK IE 7: N/A (does not implement npruntime) What steps will reproduce the problem? 1. In an npruntime plugin, create an NPObject implementing the construct function 2. From JavaScript, retreive the object from the plugin and invoke the object as a constructor: var constructor = plugin.getObjectImplementingConstruct(); var obj = new constructor(); What is the expected result? If an NPObject provides an implementation of NPClass::construct, the construct function should be invoked with the constructor arguments and whatever object it returns should be the result of the constructor expression. What happens instead? V8 reports an error: TypeError: PluginObject is not a constructor Please provide any additional information below. Attach a screenshot if possible. -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. You may adjust your issue notification preferences at: http://code.google.com/hosting/settings --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Chromium-bugs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/chromium-bugs?hl=en -~----------~----~----~----~------~----~------~--~---
