Remove usage of deprecated APIs from test-api.cc.
No more deprecation warnings up to line 11k. BUG= Review URL: https://codereview.chromium.org/1427643005 Cr-Commit-Position: refs/heads/master@{#32334}
This commit is contained in:
parent
c0bc19fc7f
commit
fd73cb191c
@ -368,6 +368,12 @@ static inline v8::Local<v8::Script> v8_compile(const char* x) {
|
||||
}
|
||||
|
||||
|
||||
static inline int32_t v8_run_int32value(v8::Local<v8::Script> script) {
|
||||
v8::Local<v8::Context> context = CcTest::isolate()->GetCurrentContext();
|
||||
return script->Run(context).ToLocalChecked()->Int32Value(context).FromJust();
|
||||
}
|
||||
|
||||
|
||||
static inline v8::Local<v8::Script> CompileWithOrigin(
|
||||
v8::Local<v8::String> source, v8::Local<v8::String> origin_url) {
|
||||
v8::ScriptOrigin origin(origin_url);
|
||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user