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.
18 lines
717 B
Text
18 lines
717 B
Text
$7f6ce915 private-identifier-access-patterns.js:1:1
|
|
Registers: 7
|
|
Blocks: 1
|
|
Constants:
|
|
[0] = String("method")
|
|
[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] CreatePrivateEnvironment
|
|
[ 38] AddPrivateName `#x`
|
|
[ 40] SetLexicalEnvironment environment:reg4
|
|
[ 48] NewClass dst:reg6, class_environment:reg5, class_blueprint_index:0, element_keys:[element_keys:String("method")]
|
|
[ 70] LeavePrivateEnvironment
|
|
[ 78] DynamicInitializeLexicalBinding `C`, src:reg6
|
|
[ 88] End value:Undefined
|