Record the generator's strictness for each emitted bytecode instruction, instead of applying the executable's final strictness to every instruction during assembly. This lets class heritage and computed element names run with strict assignment semantics inside sloppy scripts. Also create the class self-binding as a strict immutable binding, matching ClassDefinitionEvaluation, and cover strict class heritage and computed names in the runtime tests.
41 lines
1.3 KiB
Text
41 lines
1.3 KiB
Text
$745d24d5 numeric-class-field-name.js:1:1
|
|
Registers: 7
|
|
Blocks: 1
|
|
Constants:
|
|
[0] = Int32(42)
|
|
[1] = Undefined
|
|
|
|
block0:
|
|
[ 0] GetLexicalEnvironment dst:reg4
|
|
[ 8] CreateLexicalEnvironment dst:reg5, parent:reg4, capacity:0, is_catch_environment:false
|
|
[ 20] CreateVariable `C`, is_immutable:true, is_global:false, is_strict:true
|
|
[ 30] SetLexicalEnvironment environment:reg4
|
|
[ 38] NewClass dst:reg6, class_environment:reg5, class_blueprint_index:0, element_keys:[element_keys:Int32(42)]
|
|
[ 60] DynamicInitializeLexicalBinding `C`, src:reg6
|
|
[ 70] GetGlobal dst:reg5, `C`
|
|
[ 80] CallConstruct dst:reg6, callee:reg5, C
|
|
[ 98] GetByValue dst:reg5, base:reg6, property:Int32(42)
|
|
[ b0] GetById dst:reg6, base:reg5, `name` ([42].name)
|
|
[ c8] End value:reg6
|
|
|
|
|
|
C$e7b179de
|
|
Registers: 5
|
|
Blocks: 1
|
|
Constants:
|
|
[0] = Undefined
|
|
|
|
block0:
|
|
[ 0] End value:Undefined
|
|
|
|
|
|
field$b1dc4a8f numeric-class-field-name.js:2:10
|
|
Registers: 7
|
|
Blocks: 1
|
|
|
|
block0:
|
|
[ 0] GetLexicalEnvironment dst:reg4
|
|
[ 8] CreateLexicalEnvironment dst:reg5, parent:reg4, capacity:0, is_catch_environment:false
|
|
[ 20] SetLexicalEnvironment environment:reg4
|
|
[ 28] NewClass dst:reg6, class_environment:reg5, class_blueprint_index:0 (42)
|
|
[ 48] Return value:reg6
|