/ohos5.0/docs/zh-cn/contribute/ |
H A D | OpenHarmony-Application-Typescript-JavaScript-coding-guide.md | 49 ## 禁止使用eval() 55 使用eval()会让程序比较混乱,导致可读性较差。 60 console.log(eval({ a:2 })); // 输出[object Object] 61 console.log(eval('"a" + 2')); // 输出'a2' 62 console.log(eval('{ a: 2 }')); // 输出2 63 console.log(eval('let value = 1 + 1;')); // 输出undefined 91 …哪种方法定义函数,它们都是Function对象的实例,并将继承Function对象所有默认或自定义的方法和属性。以函数构造器创建函数的方式类似于函数eval(),可以接受任何字符串形式作为它的函数…
|
H A D | OpenHarmony-JavaScript-coding-style-guide.md | 458 + 调用者的作用域(使用eval时) 546 …方法定义函数,它们都是Function对象的实例,并将继承Function对象所有默认或自定义的方法和属性。以函数构造器创建函数的方式类似于字符串`eval()`,可以接受任何字符串形式作为它的函…
|
H A D | OpenHarmony-compile-rule.md | 1145 ##### G.C&C++.CDG.04 启用表达式计算顺序强化规则: “-fstrong-eval-order” 1149 **【描述】** "-fstrong-eval-order":按C++17的规格确定子表达式之间的计算顺序,比如表达式
|
/ohos5.0/docs/zh-cn/readme/ |
H A D | ARK-Runtime-Subsystem-zh.md | 56 …舟字节码\(带上静态类型信息\),从而减少运行时的编译和类型信息收集开销。另外出于安全性和性能的考虑,ArkCompiler eTS Runtime选择不支持eval和只支持strict模式的代码。 64 …方舟字节码,并且还提供了多重混淆能力的增强,有效地提升了开发者代码资产的安全强度。另外出于安全的考虑,ArkCompiler不支持sloppy模式的JS代码,也不支持eval等运行动态字符串的功能。
|
/ohos5.0/foundation/graphic/graphic_3d/lume/metaobject/src/property/ |
H A D | bind.cpp | 136 bool Bind::CreateContext(bool eval, const IProperty* owner) in CreateContext() argument 139 if (context_ && eval) { in CreateContext()
|
H A D | bind.h | 56 bool CreateContext(bool eval, const IProperty* owner); in META_BEGIN_NAMESPACE()
|
/ohos5.0/docs/en/readme/ |
H A D | ARK-Runtime-Subsystem.md | 51 …ty and performance, the ArkCompiler eTS runtime selects the code that supports strict but not eval. 61 … ArkCompiler does not support JS code in sloppy mode or functions such as eval for running dynamic…
|
/ohos5.0/docs/en/contribute/ |
H A D | OpenHarmony-Application-Typescript-JavaScript-coding-guide.md | 49 ## Do Not Use eval() 55 Using **eval()** causes code disorder and poor readability. 60 console.log (eval ({ a:2 })); // Output [object Object]. 61 console.log(eval('"a" + 2')); // Output 'a2'. 62 console.log(eval('{a: 2}')); // Output 2. 63 console.log(eval('let value = 1 + 1;'); // Output undefined. 91 …. Defining a function by using a constructor is similar to the using of **eval()**. The constructo…
|
H A D | OpenHarmony-JavaScript-coding-style-guide.md | 457 + Scope of the caller (when eval is used) 545 …function using a function constructor is similar to the character string `eval()`. Any character s…
|
H A D | OpenHarmony-compile-rule.md | 1147 ##### G.C&C++.CDG.04 Use -fstrong-eval-order to enable the expression calculation sequence rule. 1151 **[Description]** The **-fstrong-eval-order** option determines the calculation sequence of subexpr…
|
/ohos5.0/base/global/i18n/tools/ |
H A D | data_process.py | 37 location = eval(loc)
|
/ohos5.0/docs/zh-cn/application-dev/quick-start/ |
H A D | arkts-migration-background.md | 170 2. 禁止使用`eval()`
|
H A D | typescript-to-arkts-migration-guide.md | 2893 全局对象的属性和方法:`eval`
|
/ohos5.0/foundation/arkui/ace_engine_lite/frameworks/tools/qt/simulator/jsfwk/ |
H A D | jsfwk.pro | 44 eval(is_debug == release) {
|
/ohos5.0/docs/en/application-dev/quick-start/ |
H A D | arkts-migration-background.md | 167 2. Prohibit the use of `eval()`
|
/ohos5.0/foundation/arkui/ace_engine_lite/frameworks/tools/qt/simulator/jerryScript/ |
H A D | jerryScript.pro | 177 $${ROOT_PATH}/third_party/jerryscript/jerry-core/ecma/operations/ecma-eval.c \
|
/ohos5.0/base/startup/init/services/modules/seccomp/scripts/ |
H A D | generate_code_from_policy.py | 164 nr = eval(mark_pattern.sub(lambda x: str(name_to_nr.get(x.group(0))),
|
/ohos5.0/build/config/components/init/seccomp/scripts/ |
H A D | generate_code_from_policy.py | 164 nr = eval(mark_pattern.sub(lambda x: str(name_to_nr.get(x.group(0))),
|
/ohos5.0/build/scripts/ |
H A D | cargo2gn.py | 97 line = eval(repr(line).replace(f'\\"', ''))
|
/ohos5.0/build/test/example/ |
H A D | test_build_option.py | 713 ignor_li = eval(ignore_str)
|
/ohos5.0/docs/zh-cn/device-dev/porting/ |
H A D | porting-bes2600w-on-minisystem-display-demo.md | 92 $(foreach line,$(shell hb env | sed 's/\[OHOS INFO\]/ohos/g;s/ /_/g;s/:_/=/g' || true),$(eval $(lin…
|
/ohos5.0/docs/zh-cn/application-dev/reference/common/ |
H A D | _j_s_v_m.md | 119 …[JSVM_Value](#jsvm_value) \*result) | 执行一串JavaScript代码并返回其结果,其中包含以下注意事项: 与eval不同的是,该函数不允许脚本访问当前词法作… 5066 执行一串JavaScript代码并返回其结果,其中包含以下注意事项: 与eval不同的是,该函数不允许脚本访问当前词法作用域,因此也不允许访问模块作用域, 这意味着require等伪全局变量将不可用…
|
H A D | jsvm_8h.md | 53 …](_j_s_v_m.md#jsvm_value) \*result) | 执行一串JavaScript代码并返回其结果,其中包含以下注意事项: 与eval不同的是,该函数不允许脚本访问当前词法作…
|
/ohos5.0/docs/en/device-dev/porting/ |
H A D | porting-bes2600w-on-minisystem-display-demo.md | 91 $(foreach line,$(shell hb env | sed 's/\[OHOS INFO\]/ohos/g;s/ /_/g;s/:_/=/g' || true),$(eval $(lin…
|
/ohos5.0/docs/en/application-dev/reference/common/ |
H A D | jsvm_8h.md | 53 … code and returns its result, including the following precautions: Unlike eval, this function does…
|