Feature #166
Add built in classes to the class/prototype cache
| Status: | New | Start: | 11/17/2009 | |
| Priority: | Normal | Due date: | ||
| Assigned to: | % Done: | 0% |
||
| Category: | Core | |||
| Target version: | 0.10 | |||
Description
This will allow easier access to built in classes in modules without having to go grubbing about in the (possibly) polluted scope.
This will be even more useful once Spidermonkey bug 480850 - JSAPI should support creating objects given a constructor Function is completed.
Ideally we'll still have some support for create< builtin::date > or something similar at the C++ api level, and that handle what ever tricker is needed. Most ctors can be called as functions to create new instances – Date is perhaps the only exception (Date() returns the current date as a string, not a Date object).