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

Unified Diff: test/cctest/test-api.cc

Side-by-side diff isn't available for this file because of its large size.
Issue 2510633002: [api] deprecate v8::Function::IsBuiltin. (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
Download patch
« no previous file with comments | « include/v8.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/test-api.cc
diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc
index 354db4344f98c403665a0bd0a4e6b3c1ff69d4ee..b01597e4ea6c0dd32987f347d0959130e0e4ca5d 100644
--- a/test/cctest/test-api.cc
+++ b/test/cctest/test-api.cc
@@ -19018,24 +19018,6 @@ THREADED_TEST(ScriptColumnNumber) {
}
-THREADED_TEST(FunctionIsBuiltin) {
- LocalContext env;
- v8::Isolate* isolate = env->GetIsolate();
- v8::HandleScope scope(isolate);
- v8::Local<v8::Function> f;
- f = v8::Local<v8::Function>::Cast(CompileRun("Math.floor"));
- CHECK(f->IsBuiltin());
- f = v8::Local<v8::Function>::Cast(CompileRun("Object"));
- CHECK(f->IsBuiltin());
- f = v8::Local<v8::Function>::Cast(CompileRun("Object.__defineSetter__"));
- CHECK(f->IsBuiltin());
- f = v8::Local<v8::Function>::Cast(CompileRun("Array.prototype.toString"));
- CHECK(f->IsBuiltin());
- f = v8::Local<v8::Function>::Cast(CompileRun("function a() {}; a;"));
- CHECK(!f->IsBuiltin());
-}
-
-
THREADED_TEST(FunctionGetScriptId) {
LocalContext env;
v8::Isolate* isolate = env->GetIsolate();
« no previous file with comments | « include/v8.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698