Changeset 26620 in webkit for trunk/JavaScriptCore/kjs/nodes.cpp


Ignore:
Timestamp:
Oct 15, 2007, 1:41:39 PM (18 years ago)
Author:
ggaren
Message:

Reviewed by Darin Adler.


Removed the concept of AnonymousCode. It was unused, and it doesn't
exist in the ECMA spec.


[ Patch broken off from http://bugs.webkit.org/show_bug.cgi?id=14868 ]

  • kjs/Context.cpp: (KJS::Context::Context):
  • kjs/function.h: (KJS::):
  • kjs/nodes.cpp: (ReturnNode::execute):
File:
1 edited

Legend:

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

    r26617 r26620  
    21082108
    21092109  CodeType codeType = exec->context()->codeType();
    2110   if (codeType != FunctionCode && codeType != AnonymousCode ) {
     2110  if (codeType != FunctionCode)
    21112111    return createErrorCompletion(exec, SyntaxError, "Invalid return statement.");
    2112   }
    21132112
    21142113  if (!value)
Note: See TracChangeset for help on using the changeset viewer.