10 lines
291 B
JavaScript
10 lines
291 B
JavaScript
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); },
|
|
};
|