Skip to content

Commit ce84ef5

Browse files
committed
[js] Fix stuff found by make js-lint.
1 parent 8c1c322 commit ce84ef5

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

src/vm/js/nqp-runtime/serialization.js

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -888,15 +888,13 @@ class SerializationWriter {
888888

889889
/* Work out original object's SC location. */
890890
let origSCIdx = this.getSCId(origSC);
891-
let origIdx = isST != 0
892-
? origSC.rootSTables.indexOf(this.sc.rootSTables[objIdx])
893-
: origSC.rootObjects.indexOf(this.sc.rootObjects[objIdx]);
891+
let origIdx = isST != 0 ?
892+
origSC.rootSTables.indexOf(this.sc.rootSTables[objIdx]) :
893+
origSC.rootObjects.indexOf(this.sc.rootObjects[objIdx]);
894894

895895
if (origIdx < 0)
896-
throw "Could not find object when writing repossessions; " +
897-
(isST != 0
898-
? "STable"
899-
: "REPR = " + this.sc.rootObjects[objIdx]._STable.REPR.name);
896+
throw 'Could not find object when writing repossessions; ' +
897+
(isST != 0 ? 'STable' : 'REPR = ' + this.sc.rootObjects[objIdx]._STable.REPR.name);
900898

901899
/* Write table row. */
902900
this.repossessionsData.I32(isST);

0 commit comments

Comments
 (0)