Changeset 37242 in webkit for trunk/JavaScriptCore/kjs


Ignore:
Timestamp:
Oct 3, 2008, 10:27:37 AM (17 years ago)
Author:
Darin Adler
Message:

2008-10-03 Darin Adler <Darin Adler>

Rubber stamped by Alexey Proskuryakov.

  • kjs/Shell.cpp: (main): Don't delete JSGlobalData. Later, we need to change this tool to use public JavaScriptCore API instead.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/kjs/Shell.cpp

    r37184 r37242  
    2323#include "config.h"
    2424
    25 #include "ObjectPrototype.h"
    26 #include "ObjectConstructor.h"
    27 
    2825#include "CodeGenerator.h"
    2926#include "InitializeThreading.h"
    3027#include "JSArray.h"
    31 #include "JSFunction.h"
    32 #include "JSGlobalObject.h"
    3328#include "JSLock.h"
    34 #include "JSObject.h"
    35 #include "Parser.h"
    3629#include "PrototypeFunction.h"
    37 #include "SamplingTool.h"
    38 #include "collector.h"
    3930#include "completion.h"
    4031#include "interpreter.h"
    41 #include "nodes.h"
    42 #include "protect.h"
    4332#include <math.h>
    4433#include <stdio.h>
    4534#include <string.h>
    46 #include <wtf/Assertions.h>
    47 #include <wtf/HashTraits.h>
    4835
    4936#if !PLATFORM(WIN_OS)
     
    309296    int res = 0;
    310297    TRY
    311         JSGlobalData* globalData = JSGlobalData::create().releaseRef();
    312         res = jscmain(argc, argv, globalData);
    313         delete globalData;
     298        res = jscmain(argc, argv, JSGlobalData::create().releaseRef());
    314299    EXCEPT(res = 3)
    315300    return res;
Note: See TracChangeset for help on using the changeset viewer.