porffor 0.22.11 → 0.24.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/compiler/builtins_objects.js +10 -7
- package/compiler/builtins_precompiled.js +23 -23
- package/compiler/codegen.js +4 -0
- package/package.json +1 -1
- package/runner/index.js +1 -1
package/compiler/codegen.js
CHANGED
@@ -3142,6 +3142,8 @@ const generateAssign = (scope, decl, _global, _name, valueUnused = false) => {
|
|
3142
3142
|
]
|
3143
3143
|
}),
|
3144
3144
|
|
3145
|
+
[TYPES.undefined]: internalThrow(scope, 'TypeError', 'Cannot set property of undefined', true),
|
3146
|
+
|
3145
3147
|
// default: internalThrow(scope, 'TypeError', `Cannot assign member with this type`)
|
3146
3148
|
default: [
|
3147
3149
|
...objectWasm,
|
@@ -4920,6 +4922,8 @@ const generateMember = (scope, decl, _global, _name) => {
|
|
4920
4922
|
postlude: setLastType(scope, TYPES.number)
|
4921
4923
|
}),
|
4922
4924
|
|
4925
|
+
[TYPES.undefined]: internalThrow(scope, 'TypeError', 'Cannot read property of undefined', true),
|
4926
|
+
|
4923
4927
|
// default: internalThrow(scope, 'TypeError', 'Unsupported member expression object', true)
|
4924
4928
|
default: [
|
4925
4929
|
...number(0),
|
package/package.json
CHANGED