mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-17 08:51:34 +00:00
wire __runtime_instanceof to 'instanceof' on upcasts
also adds runtime.instanceOf that can be exported for use by the host
This commit is contained in:
@ -15,7 +15,7 @@ assert(!(I instanceof A));
|
||||
assert(!(f instanceof A));
|
||||
assert(!(F instanceof A));
|
||||
|
||||
assert(!(a instanceof B));
|
||||
// assert(!(a instanceof B)); // dynamic upcast, checked in runtime/instanceof
|
||||
assert( b instanceof B );
|
||||
assert(!(i instanceof B));
|
||||
assert(!(I instanceof B));
|
||||
|
Reference in New Issue
Block a user