| Index: src/runtime.cc
|
| diff --git a/src/runtime.cc b/src/runtime.cc
|
| index 7dc96f201970eec90466b79f20fa2823271fe737..c909f34db17f9cbb687ace5eb1f165c764af2752 100644
|
| --- a/src/runtime.cc
|
| +++ b/src/runtime.cc
|
| @@ -9646,6 +9646,16 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_GlobalReceiver) {
|
| }
|
|
|
|
|
| +RUNTIME_FUNCTION(MaybeObject*, Runtime_IsAttachedGlobal) {
|
| + SealHandleScope shs(isolate);
|
| + ASSERT(args.length() == 1);
|
| + Object* global = args[0];
|
| + if (!global->IsJSGlobalObject()) return isolate->heap()->false_value();
|
| + return isolate->heap()->ToBoolean(
|
| + !JSGlobalObject::cast(global)->IsDetached());
|
| +}
|
| +
|
| +
|
| RUNTIME_FUNCTION(MaybeObject*, Runtime_ParseJson) {
|
| HandleScope scope(isolate);
|
| ASSERT_EQ(1, args.length());
|
|
|