mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-07-03 00:21:52 +00:00
Move fmod/fmodf to builtins and bind them to the '%' operator
This commit is contained in:
@ -2514,7 +2514,7 @@ export class Function extends Element {
|
||||
this.signature = signature;
|
||||
this.memberOf = memberOf;
|
||||
this.flags = prototype.flags;
|
||||
if (!(prototype.is(CommonFlags.BUILTIN) || prototype.is(CommonFlags.DECLARE))) {
|
||||
if (!(prototype.is(CommonFlags.AMBIENT | CommonFlags.BUILTIN) || prototype.is(CommonFlags.DECLARE))) {
|
||||
let localIndex = 0;
|
||||
if (memberOf && memberOf.kind == ElementKind.CLASS) {
|
||||
assert(this.is(CommonFlags.INSTANCE));
|
||||
|
Reference in New Issue
Block a user