Reviewed by Geoffrey Garen and Anders Carlsson.
Remove uses of KJS_PURE_ECMA as we don't ever build with it defined,
and we have many features that are not included in the ECMA spec.
* kjs/lexer.cpp:
(KJS::Lexer::Lexer):
(KJS::Lexer::setCode):
(KJS::Lexer::nextLine):
(KJS::Lexer::lex):
* kjs/lexer.h:
* kjs/string_object.cpp:
* kjs/string_object.h:
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@29537 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/JavaScriptCore/kjs/string_object.cpp b/JavaScriptCore/kjs/string_object.cpp
index 49a4b11..43c245e 100644
--- a/JavaScriptCore/kjs/string_object.cpp
+++ b/JavaScriptCore/kjs/string_object.cpp
@@ -153,10 +153,7 @@
toLocaleLowerCase &stringProtoFuncToLocaleLowerCase DontEnum|Function 0
toLocaleUpperCase &stringProtoFuncToLocaleUpperCase DontEnum|Function 0
localeCompare &stringProtoFuncLocaleCompare DontEnum|Function 1
-#
-# Under here: html extension, should only exist if KJS_PURE_ECMA is not defined
-# I guess we need to generate two hashtables in the .lut.h file, and use #ifdef
-# to select the right one... TODO. #####
+
big &stringProtoFuncBig DontEnum|Function 0
small &stringProtoFuncSmall DontEnum|Function 0
blink &stringProtoFuncBlink DontEnum|Function 0
@@ -893,8 +890,6 @@
return jsNumber(localeCompare(s, a0->toString(exec)));
}
-#ifndef KJS_PURE_ECMA
-
JSValue* stringProtoFuncBig(ExecState* exec, JSObject* thisObj, const List&)
{
// This optimizes the common case that thisObj is a StringInstance
@@ -990,8 +985,6 @@
return jsString("<a href=\"" + a0->toString(exec) + "\">" + s + "</a>");
}
-#endif // KJS_PURE_ECMA
-
// ------------------------------ StringObjectImp ------------------------------
StringObjectImp::StringObjectImp(ExecState* exec,