Home
last modified time | relevance | path

Searched refs:PreventExtensions (Results 1 - 21 of 21) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/builtins/
H A Dbuiltins_object.h67 V("preventExtensions", PreventExtensions, 1, INVALID) \
135 static JSTaggedValue PreventExtensions(EcmaRuntimeCallInfo *argv);
H A Dbuiltins_reflect.cpp277 BUILTINS_API_TRACE(argv->GetThread(), Reflect, PreventExtensions); in ReflectPreventExtensions()
286 // 2. Return ? target.[[PreventExtensions]](). in ReflectPreventExtensions()
287 return GetTaggedBoolean(JSTaggedValue::PreventExtensions(thread, target)); in ReflectPreventExtensions()
H A Dbuiltins_object.cpp664 JSTaggedValue BuiltinsObject::PreventExtensions(EcmaRuntimeCallInfo *argv) in PreventExtensions() function in panda::ecmascript::builtins::BuiltinsObject
668 BUILTINS_API_TRACE(thread, Object, PreventExtensions); in PreventExtensions()
675 // 2. Let status be O.[[PreventExtensions]](). in PreventExtensions()
676 bool status = JSTaggedValue::PreventExtensions(thread, obj); in PreventExtensions()
684 THROW_TYPE_ERROR_AND_RETURN(thread, "PreventExtensions: preventExtensions failed", in PreventExtensions()
H A Dbuiltins.cpp1298 JSObject::PreventExtensions(thread_, JSHandle<JSObject>::Cast(throwTypeErrorFunction)); in InitializeError()
/arkcompiler/ets_runtime/ecmascript/module/
H A Djs_module_namespace.h38 // 9.4.6.3[[PreventExtensions]]
39 static bool PreventExtensions();
H A Djs_module_namespace.cpp211 bool ModuleNamespace::PreventExtensions() in PreventExtensions() function in panda::ecmascript::ModuleNamespace
/arkcompiler/ets_runtime/ecmascript/
H A Djs_proxy.h37 // ES6 9.5.4 [[PreventExtensions]] ( )
38 static bool PreventExtensions(JSThread *thread, const JSHandle<JSProxy> &proxy);
H A Djs_tagged_value.cpp1270 bool JSTaggedValue::PreventExtensions(JSThread *thread, const JSHandle<JSTaggedValue> &obj) in PreventExtensions() function in panda::ecmascript::JSTaggedValue
1273 return JSProxy::PreventExtensions(thread, JSHandle<JSProxy>(obj)); in PreventExtensions()
1276 return ModuleNamespace::PreventExtensions(); in PreventExtensions()
1278 return JSObject::PreventExtensions(thread, JSHandle<JSObject>(obj)); in PreventExtensions()
H A Djs_proxy.cpp219 // ES6 9.5.4 [[PreventExtensions]] ( )
220 bool JSProxy::PreventExtensions(JSThread *thread, const JSHandle<JSProxy> &proxy) in PreventExtensions() function in panda::ecmascript::JSProxy
231 // a. Return target.[[PreventExtensions]](). in PreventExtensions()
236 THROW_TYPE_ERROR_AND_RETURN(thread, "JSProxy::PreventExtensions: handler is null", false); in PreventExtensions()
246 return JSTaggedValue::PreventExtensions(thread, targetHandle); in PreventExtensions()
263 THROW_TYPE_ERROR_AND_RETURN(thread, "JSProxy::PreventExtensions: targetIsExtensible is true", false); in PreventExtensions()
H A Djs_tagged_value.h455 static bool PreventExtensions(JSThread *thread, const JSHandle<JSTaggedValue> &obj);
H A Druntime_call_id.h667 V(Object, PreventExtensions) \
730 V(Reflect, PreventExtensions) \
H A Djs_object.h493 // [[PreventExtensions]]
494 static bool PreventExtensions(JSThread *thread, const JSHandle<JSObject> &obj);
H A Djs_object.cpp1555 bool JSObject::PreventExtensions(JSThread *thread, const JSHandle<JSObject> &obj) in PreventExtensions() function in panda::ecmascript::JSObject
1820 bool status = JSTaggedValue::PreventExtensions(thread, JSHandle<JSTaggedValue>(obj)); in SetIntegrityLevel()
/arkcompiler/ets_runtime/ecmascript/tests/
H A Dshared_object_factory_test.cpp38 ModuleNamespace::PreventExtensions(); in HWTEST_F_L0()
H A Djs_proxy_test.cpp398 // ES6 9.5.4 [[PreventExtensions]] ( )
399 HWTEST_F_L0(JSProxyTest, PreventExtensions) in HWTEST_F_L0()
402 // 1. handler has no "PreventExtensions" in HWTEST_F_L0()
413 bool status1 = JSProxy::PreventExtensions(thread, proxyHandle); in HWTEST_F_L0()
418 // 2. handler has "PreventExtensions" in HWTEST_F_L0()
428 EXPECT_FALSE(JSProxy::PreventExtensions(thread, proxyHandle2)); in HWTEST_F_L0()
/arkcompiler/ets_runtime/test/fuzztest/jsvaluerefismodulenamespace_fuzzer/
H A Djsvaluerefismodulenamespace_fuzzer.cpp60 ModuleNamespace::PreventExtensions(); in IsModuleNamespaceObjectFuzztest()
/arkcompiler/ets_runtime/ecmascript/builtins/tests/
H A Dbuiltins_object_test.cpp643 HWTEST_F_L0(BuiltinsObjectTest, PreventExtensions) in HWTEST_F_L0()
653 JSTaggedValue result = BuiltinsObject::PreventExtensions(ecmaRuntimeCallInfo); in HWTEST_F_L0()
/arkcompiler/ets_runtime/ecmascript/napi/test/
H A Djsnapi_second_tests.cpp1171 EXPECT_TRUE(ModuleNamespace::PreventExtensions()); in HWTEST_F_L0()
/arkcompiler/ets_runtime/ecmascript/snapshot/mem/
H A Dsnapshot_processor.cpp289 reinterpret_cast<uintptr_t>(Object::PreventExtensions),
/arkcompiler/ets_runtime/ecmascript/containers/
H A Dcontainers_private.cpp198 JSObject::PreventExtensions(thread, JSHandle<JSObject>::Cast(value)); in SetFrozenConstructor()
/arkcompiler/ets_runtime/ecmascript/module/tests/
H A Decma_module_test.cpp730 EXPECT_TRUE(ModuleNamespace::PreventExtensions()); in HWTEST_F_L0()

Completed in 47 milliseconds