-
Notifications
You must be signed in to change notification settings - Fork 452
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Obj.magic, String.length etc. appearing in JS output (#7087)
- Loading branch information
Showing
17 changed files
with
40 additions
and
173 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1 @@ | ||
|
||
|
||
|
||
function magic(prim) { | ||
return prim; | ||
} | ||
|
||
function repr(prim) { | ||
return prim; | ||
} | ||
|
||
function obj(prim) { | ||
return prim; | ||
} | ||
|
||
function tag(prim) { | ||
return prim.TAG; | ||
} | ||
|
||
function size(prim) { | ||
return prim.length | 0; | ||
} | ||
|
||
function field(prim0, prim1) { | ||
return prim0[prim1]; | ||
} | ||
|
||
function set_field(prim0, prim1, prim2) { | ||
prim0[prim1] = prim2; | ||
} | ||
|
||
function dup(prim) { | ||
return {...prim}; | ||
} | ||
|
||
function update_dummy(prim0, prim1) { | ||
Object.assign(prim0, prim1); | ||
} | ||
|
||
export { | ||
magic, | ||
repr, | ||
obj, | ||
tag, | ||
size, | ||
field, | ||
set_field, | ||
dup, | ||
update_dummy, | ||
} | ||
/* No side effect */ | ||
/* This output is empty. Its source's type definitions, externals and/or unused code got optimized away. */ |
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 |
---|---|---|
@@ -1,49 +1 @@ | ||
'use strict'; | ||
|
||
|
||
function magic(prim) { | ||
return prim; | ||
} | ||
|
||
function repr(prim) { | ||
return prim; | ||
} | ||
|
||
function obj(prim) { | ||
return prim; | ||
} | ||
|
||
function tag(prim) { | ||
return prim.TAG; | ||
} | ||
|
||
function size(prim) { | ||
return prim.length | 0; | ||
} | ||
|
||
function field(prim0, prim1) { | ||
return prim0[prim1]; | ||
} | ||
|
||
function set_field(prim0, prim1, prim2) { | ||
prim0[prim1] = prim2; | ||
} | ||
|
||
function dup(prim) { | ||
return {...prim}; | ||
} | ||
|
||
function update_dummy(prim0, prim1) { | ||
Object.assign(prim0, prim1); | ||
} | ||
|
||
exports.magic = magic; | ||
exports.repr = repr; | ||
exports.obj = obj; | ||
exports.tag = tag; | ||
exports.size = size; | ||
exports.field = field; | ||
exports.set_field = set_field; | ||
exports.dup = dup; | ||
exports.update_dummy = update_dummy; | ||
/* No side effect */ | ||
/* This output is empty. Its source's type definitions, externals and/or unused code got optimized away. */ |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.