Update std.js

This commit is contained in:
Namhyeon Go 2022-02-09 11:31:17 +09:00 committed by GitHub
parent 87d494d148
commit 7fe5182e54
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -219,6 +219,10 @@ function CHR(ord) {
return String.fromCharCode(ord);
};
function splitLn(s) {
return s.split(/\r?\n/);
};
/////////////////////////////////////////////////////////////////////////////////
// Private APIs / Utility functions
/////////////////////////////////////////////////////////////////////////////////
@ -292,6 +296,7 @@ global.repeat = repeat;
global.rotate = rotate;
global.range = range;
global.CHR = CHR;
global.splitLn = splitLn;
exports.VERSIONINFO = "Standard Lib (std.js) version 0.4";
exports.global = global;