Misc cleanups
This commit is contained in:
@@ -1,7 +0,0 @@
|
||||
const Object = {
|
||||
create(proto) { return { __proto__: proto }; },
|
||||
};
|
||||
|
||||
const console = {
|
||||
log(x) { __c_print(x); },
|
||||
};
|
||||
@@ -0,0 +1,9 @@
|
||||
const Object = {
|
||||
create(proto) { return { __proto__: proto }; },
|
||||
};
|
||||
|
||||
const console = {
|
||||
// TODO: all __native_* fns should be monomorphic, console.log() should act a bit like Rust's write!/print!
|
||||
// and break down complex printing in JS-land
|
||||
log(x) { __native_print(x); },
|
||||
};
|
||||
Reference in New Issue
Block a user