This article covers features introduced in SpiderMonkey 1.8
Create an object as though by using the
| || ||The context in which to create the new object. Requires request. In a |
| || ||The constructor function object.|
| || ||The number of arguments to pass to the constructor.|
| || ||Pointer to the element 0 of an array of argument values to pass to the constructor. If argc is |
JS_New creates a new object as though by using the new operator, as described in ECMA 262-3 §11.2.2.
new ctor(argv, argv, ... argv[argc-1]). If
ctor is not an object that can be used as a constructor, a
TypeError is raised.
On success, JS_New returns a pointer to the new object. On error, it returns