Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(725)

Unified Diff: src/objects.h

Issue 2399423003: [builtins] Move StringIncludes to a builtin. (Closed)
Patch Set: Add another test. Re-use IsRegExp logic Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/js/string.js ('k') | src/objects.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects.h
diff --git a/src/objects.h b/src/objects.h
index 927c6c7f46183a1e27932d206b3ddb53ca929edf..adebbac2f59bd3a016b026f6dc4d02dbf60ab376 100644
--- a/src/objects.h
+++ b/src/objects.h
@@ -1376,6 +1376,10 @@ class Object {
Isolate* isolate, Handle<Object> object, uint32_t index,
Handle<Object> value, LanguageMode language_mode);
+ // ES#sec-isregexp IsRegExp ( argument )
+ // Includes checking of the mach property as per section 7.2.8 IsRegExp.
+ static Maybe<bool> IsRegExp(Isolate* isolate, Handle<Object> object);
+
// Returns the permanent hash code associated with this object. May return
// undefined if not yet created.
Object* GetHash();
« no previous file with comments | « src/js/string.js ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698