diff --git a/src/vm/js/nqp-runtime/runtime.js b/src/vm/js/nqp-runtime/runtime.js index 4feb65c4c0..eadac63409 100644 --- a/src/vm/js/nqp-runtime/runtime.js +++ b/src/vm/js/nqp-runtime/runtime.js @@ -21,9 +21,9 @@ exports.to_str = function(arg) { exports.named = function(named) { return named; -} +}; // Placeholder exports.top_context = function() { return null; -} +}; diff --git a/tools/build/Makefile-JS.in b/tools/build/Makefile-JS.in index f8633efbbb..eff4a7ce7d 100644 --- a/tools/build/Makefile-JS.in +++ b/tools/build/Makefile-JS.in @@ -111,3 +111,5 @@ node_modules/installed: src/vm/js/nqp-runtime/runtime.js js-clean: $(RM_RF) gen/js/stage1 gen/js/stage2 gen/parrot/QAST gen/parrot/HLL +js-lint: + gjslint --strict --nojsdoc src/vm/js/nqp-runtime/*.js diff --git a/tools/build/gen-js-makefile.nqp b/tools/build/gen-js-makefile.nqp index 9d3c77e9ff..c33b590e6a 100644 --- a/tools/build/gen-js-makefile.nqp +++ b/tools/build/gen-js-makefile.nqp @@ -147,3 +147,5 @@ say('node_modules/installed: src/vm/js/nqp-runtime/runtime.js say("\n\njs-clean: \$(RM_RF) gen/js/stage1 gen/js/stage2 gen/parrot/QAST gen/parrot/HLL "); +say("js-lint: + gjslint --strict --nojsdoc src/vm/js/nqp-runtime/*.js");