Cannot serialize arrow function in class which extends a super class which uses this
if super()
not called yet
#334
Labels
bug
Something isn't working
Very odd case but legal:
It is legitimate to call
o.init()
followed byo.get()
, and the latter returns123
.The above cannot be serialized though. It throws
Error: Failed to extract scope vars from function
due to underlying error in trying to serialize.get
ReferenceError: Must call super constructor in derived class before accessing 'this' or returning from derived constructor
.The error is thrown in the tracker function as it tries to access
this
.Similar problem to #323 with vars in temporal dead zone. Solution will be much the same.
The text was updated successfully, but these errors were encountered: