changed Context constructor to take JSObject* not JSObject&, to be able to control lifetime a little more carefully.

git-svn-id: svn://10.0.0.236/trunk@67068 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
beard%netscape.com
2000-04-25 03:32:53 +00:00
parent d94e75b843
commit 2483f6c208
6 changed files with 24 additions and 24 deletions

View File

@@ -216,7 +216,7 @@ namespace Shell {
static float64 testFunctionCall(World &world, float64 n)
{
JSObject glob;
Context cx(world, glob);
Context cx(world, &glob);
uint32 position = 0;
//StringAtom& global = world.identifiers[widenCString("global")];
StringAtom& sum = world.identifiers[widenCString("sum")];
@@ -266,7 +266,7 @@ namespace Shell {
static float64 testFactorial(World &world, float64 n)
{
JSObject glob;
Context cx(world, glob);
Context cx(world, &glob);
// generate code for factorial, and interpret it.
uint32 position = 0;
ICodeGenerator icg;
@@ -327,7 +327,7 @@ namespace Shell {
static float64 testObjects(World &world, int32 n)
{
JSObject glob;
Context cx(world, glob);
Context cx(world, &glob);
// create some objects, put some properties, and retrieve them.
uint32 position = 0;
ICodeGenerator initCG;