Skip to content

Commit 05b51d4

Browse files
committed
[js] Run fixjsstyle
1 parent 43c5201 commit 05b51d4

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -932,8 +932,8 @@ op.backtrace = function(hllName, exception) {
932932
row.content.set('sub', ctx.codeRef());
933933
}
934934

935-
annotations.content.set("file", "NYI");
936-
annotations.content.set("line", 0);
935+
annotations.content.set('file', 'NYI');
936+
annotations.content.set('line', 0);
937937

938938
rows.push(row);
939939

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const TAKE = 128;
1717
const WARN = 256;
1818
const SUCCEED = 512;
1919
const PROCEED = 1024;
20-
const LABELED = 4096
20+
const LABELED = 4096;
2121
const AWAIT = 8192;
2222
const EMIT = 16384;
2323
const DONE = 32768;
@@ -45,7 +45,7 @@ class ResumeException {
4545
constructor(exception) {
4646
this.exception = exception;
4747
}
48-
}
48+
};
4949

5050
class Ctx extends NQPObject {
5151
constructor(callerCtx, outerCtx, callThis) {

src/vm/js/nqp-runtime/nqp-exception-with-ctx.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ class NQPExceptionWithCtx extends NQPException {
55
this.$$ctx = ctx;
66
}
77

8-
}
8+
};
99
module.exports = NQPExceptionWithCtx;

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -145,18 +145,18 @@ op.ctxouter = function(ctx) {
145145
exports.currentDispatcherFor = undefined;
146146

147147
op.setdispatcherfor = function(dispatcher, dispatcherFor) {
148-
exports.currentDispatcher = dispatcher
148+
exports.currentDispatcher = dispatcher;
149149
let spec;
150150
if (dispatcherFor instanceof CodeRef) {
151151
exports.currentDispatcherFor = dispatcherFor;
152152
} else if (spec = dispatcherFor._STable.invocationSpec) {
153153
if (spec.classHandle) {
154154
exports.currentDispatcherFor = dispatcherFor.$$getattr(spec.classHandle, spec.attrName);
155155
} else {
156-
throw "setdispatcherfor needs simple invokable target"
156+
throw 'setdispatcherfor needs simple invokable target';
157157
}
158158
} else {
159-
throw "setdispatcherfor needs invokable target";
159+
throw 'setdispatcherfor needs invokable target';
160160
}
161161
};
162162

@@ -346,7 +346,7 @@ exports.args = function(module) {
346346
exports.NQPException = NQPException;
347347

348348
exports.wrapException = function(e) {
349-
return new NQPException("<<wrapped exception:\n" + e.stack + "\n>>\n");
349+
return new NQPException('<<wrapped exception:\n' + e.stack + '\n>>\n');
350350
};
351351

352352
exports.setCodeRefHLL = function(codeRefs, hllName) {

0 commit comments

Comments
 (0)