var assert = require("assert"); var uglify = require("../node"); describe("Number literals", function () { it("Should not allow legacy octal literals in strict mode", function() { var inputs = [ '"use strict";00;', '"use strict"; var foo = 00;' ]; var test = function(input) { return function() { uglify.parse(input); } } var error = function(e) { return e instanceof uglify.JS_Parse_Error && e.message === "Legacy octal literals are not allowed in strict mode"; } for (var i = 0; i < inputs.length; i++) { assert.throws(test(inputs[i]), error, inputs[i]); } }); });n value='koszko' selected='selected'>koszko Wojtek's customized Guix
aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/lsof.scm
AgeCommit message (Expand)Author
2018-10-15gnu: lsof: Fix builds on glibc 2.28....* gnu/packages/lsof.scm (lsof)[arguments]: In 'disable-failing-tests', add 'substitute*' use for "tests/LTlib.c". Ludovic Courtès
2018-07-12gnu: lsof: Return #t from all phases....* gnu/packages/lsof.scm (lsof)[arguments]: Return #t from phases. Marius Bakke
2018-07-12gnu: lsof: Update to 4.91....* gnu/packages/lsof.scm (lsof): Update to 4.91. Marius Bakke