Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[js] Pass native arguments specially
- Loading branch information
Showing
7 changed files
with
195 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
class NativeIntArg { | ||
constructor(value) { | ||
this.value = value; | ||
} | ||
|
||
$$getInt() { | ||
return this.value; | ||
} | ||
|
||
$$decont() { | ||
return this; | ||
} | ||
}; | ||
|
||
exports.NativeIntArg = NativeIntArg; | ||
|
||
class NativeNumArg { | ||
constructor(value) { | ||
this.value = value; | ||
} | ||
|
||
$$getNum() { | ||
return this.value; | ||
} | ||
|
||
$$decont() { | ||
return this; | ||
} | ||
}; | ||
|
||
exports.NativeNumArg = NativeNumArg; | ||
|
||
class NativeStrArg { | ||
constructor(value) { | ||
this.value = value; | ||
} | ||
|
||
$$getStr() { | ||
return this.value; | ||
} | ||
|
||
$$decont() { | ||
return this; | ||
} | ||
}; | ||
|
||
exports.NativeStrArg = NativeStrArg; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters