Ignore:
Timestamp:
Dec 10, 2007, 4:35:53 PM (17 years ago)
Author:
[email protected]
Message:

Reviewed by Sam Weinig.


Merged different implementations of Parser::parse into a single,
templatized implementation, in preparation for adding yet another
implementation for "eval" code.


JS and layout tests pass.

File:
1 edited

Legend:

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

    r28546 r28595  
    190190  int errLine;
    191191  UString errMsg;
    192   RefPtr<FunctionBodyNode> functionBody = parser().parseFunctionBody(sourceURL, lineNumber, body.data(), body.size(), &sourceId, &errLine, &errMsg);
     192  RefPtr<FunctionBodyNode> functionBody = parser().parse<FunctionBodyNode>(sourceURL, lineNumber, body.data(), body.size(), &sourceId, &errLine, &errMsg);
    193193
    194194  // notify debugger that source has been parsed
Note: See TracChangeset for help on using the changeset viewer.