From: bak@chromium.org Date: Fri, 17 Oct 2008 11:36:42 +0000 (+0000) Subject: - Missing files X-Git-Tag: upstream/4.7.83~25177 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=33b050dd85cdc6a2a2343db09cb999779a3af179;p=platform%2Fupstream%2Fv8.git - Missing files git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@522 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- diff --git a/src/macros.py b/src/macros.py index 48ca367..5a7606a 100644 --- a/src/macros.py +++ b/src/macros.py @@ -78,9 +78,9 @@ macro IS_NUMBER(arg) = (typeof(arg) === 'number'); macro IS_STRING(arg) = (typeof(arg) === 'string'); macro IS_OBJECT(arg) = (typeof(arg) === 'object'); macro IS_BOOLEAN(arg) = (typeof(arg) === 'boolean'); -macro IS_REGEXP(arg) = (%ClassOf(arg) === 'RegExp'); -macro IS_ARRAY(arg) = %IsArrayClass(arg); -macro IS_DATE(arg) = %IsDateClass(arg); +macro IS_REGEXP(arg) = %HasRegExpClass(arg); +macro IS_ARRAY(arg) = %HasArrayClass(arg); +macro IS_DATE(arg) = %HasDateClass(arg); macro IS_ERROR(arg) = (%ClassOf(arg) === 'Error'); macro IS_SCRIPT(arg) = (%ClassOf(arg) === 'Script'); macro FLOOR(arg) = %Math_floor(arg); diff --git a/src/string.js b/src/string.js index 26318a3..984d969 100644 --- a/src/string.js +++ b/src/string.js @@ -46,7 +46,7 @@ // ECMA-262 section 15.5.4.2 function StringToString() { - if (!IS_STRING(this) && !%IsStringClass(this)) + if (!IS_STRING(this) && !%HasStringClass(this)) throw new $TypeError('String.prototype.toString is not generic'); return %_ValueOf(this); } @@ -54,7 +54,7 @@ function StringToString() { // ECMA-262 section 15.5.4.3 function StringValueOf() { - if (!IS_STRING(this) && !%IsStringClass(this)) + if (!IS_STRING(this) && !%HasStringClass(this)) throw new $TypeError('String.prototype.valueOf is not generic'); return %_ValueOf(this); }