[JS IR BE] Refactored js("...") function

- support object expression
 - do not wrap in function in statement-level position
 - support implicit return
 - code clean up
This commit is contained in:
Roman Artemev
2019-07-11 11:37:00 +03:00
committed by romanart
parent 946bc75cda
commit efafb6585e
9 changed files with 217 additions and 209 deletions
-1
View File
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JS_IR
// EXPECTED_REACHABLE_NODES: 1280
fun box(): String {
return js("""