Lines Matching defs:sandbox

84 // sandboxed code, to the sandbox object.
94 // interceptor callback checks the sandbox object for the property.
95 // If the property is defined on the sandbox, that result is returned to
99 // changes the property both on the sandbox and the global proxy.
262 // We need to tie the lifetime of the sandbox object with the lifetime of
264 // other. The context can directly hold a reference to the sandbox as an
265 // embedder data field. The sandbox uses a private symbol to hold a reference
312 // The only strong reference to the wrapper will come from the sandbox.
351 // makeContext(sandbox, name, origin, strings, wasm);
357 Local<Object> sandbox = args[0].As<Object>();
359 // Don't allow contextifying a sandbox multiple times.
361 !sandbox->HasPrivate(
390 ContextifyContext::New(env, sandbox, options);
404 Local<Object> sandbox = args[0].As<Object>();
407 sandbox->HasPrivate(env->context(),
422 const Local<Object>& sandbox) {
424 if (sandbox
465 Local<Object> sandbox = ctx->sandbox();
467 sandbox->GetRealNamedProperty(context, property);
475 if (rv == sandbox)
501 bool is_declared_on_sandbox = ctx->sandbox()
518 // on the sandbox in strict mode, i.e. args.ShouldThrowOnError() = true.
532 if (ctx->sandbox()->Set(context, property, value).IsNothing()) return;
536 ctx->sandbox()
562 Local<Object> sandbox = ctx->sandbox();
564 if (sandbox->HasOwnProperty(context, property).FromMaybe(false)) {
566 if (sandbox->GetOwnPropertyDescriptor(context, property).ToLocal(&desc)) {
595 // the global or sandbox.
599 Local<Object> sandbox = ctx->sandbox();
609 // Set the property on the sandbox.
610 USE(sandbox->DefineProperty(context, property, *desc_for_sandbox));
642 Maybe<bool> success = ctx->sandbox()->Delete(ctx->context(), property);
647 // Delete failed on the sandbox, intercept and do not delete on
662 if (!ctx->sandbox()->GetPropertyNames(ctx->context()).ToLocal(&properties))
731 Maybe<bool> success = ctx->sandbox()->Delete(ctx->context(), index);
736 // Delete failed on the sandbox, intercept and do not delete on
808 ContextifyContext* sandbox =
811 CHECK_NOT_NULL(sandbox);
812 parsing_context = sandbox->context();
996 Local<Object> sandbox = args[0].As<Object>();
997 // Get the context from the sandbox
999 ContextifyContext::ContextFromContextifiedSandbox(env, sandbox);
1173 ContextifyContext* sandbox =
1176 CHECK_NOT_NULL(sandbox);
1177 parsing_context = sandbox->context();