v8/test/unittests/api
Sathya Gunasekaran b38bf5b0b1 [api] Change CreationContext to return a MaybeHandle
The current API returns a Handle<NativeContext> which can be
optionally null and all the users of this API never actually
checked for this null value.

Previously, this wasn't a problem as all the possible JSObjects
that were user visible would return a valid NativeContext but now
there are wasm objects that don't have a valid constructor so don't
have a NativeContext.

Bug: v8:11451, chromium:1166077
Change-Id: I4fd5edf8f1a750e6f0abb931fd41358e5ae4dfcf
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2692695
Commit-Queue: Sathya Gunasekaran  <gsathya@chromium.org>
Reviewed-by: Toon Verwaest <verwaest@chromium.org>
Reviewed-by: Benedikt Meurer <bmeurer@chromium.org>
Reviewed-by: Ulan Degenbaev <ulan@chromium.org>
Cr-Commit-Position: refs/heads/master@{#72769}
2021-02-16 12:52:31 +00:00
..
access-check-unittest.cc [api] Create v8::String::NewFromLiteral that returns Local<String> 2020-03-09 12:02:07 +00:00
exception-unittest.cc [config] Add V8_NODISCARD for Scope classes 2020-11-26 11:08:45 +00:00
interceptor-unittest.cc [cleanup] Refactor general tests to use default members. 2018-09-14 14:40:47 +00:00
isolate-unittest.cc [cleanup] Remove DISALLOW_COPY_AND_ASSIGN in test/{common,unittests} 2020-11-06 06:07:54 +00:00
remote-object-unittest.cc [api] Change CreationContext to return a MaybeHandle 2021-02-16 12:52:31 +00:00
resource-constraints-unittest.cc [ptr-compr, heap] Use system pointer size for heap limit computation 2020-02-06 17:32:44 +00:00
v8-object-unittest.cc [api] Change CreationContext to return a MaybeHandle 2021-02-16 12:52:31 +00:00