Projects
openEuler:Roll:Everything:RVA20
nodejs-jsonselect
_service:obs_scm:nodejs-jsonselect_fix-print.patch
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:nodejs-jsonselect_fix-print.patch of Package nodejs-jsonselect
diff --git a/src/build/post-compile.js b/src/build/post-compile.js index 4bcafe8..bfdf083 100644 --- a/src/build/post-compile.js +++ b/src/build/post-compile.js @@ -1,7 +1,6 @@ #!/usr/bin/env node -var print = require("sys").print, - src = require("fs").readFileSync(process.argv[2], "utf8"); +var src = require("fs").readFileSync(process.argv[2], "utf8"); // Previously done in sed but reimplemented here due to portability issues -print(src.replace(/^(\s*\*\/)(.+)/m, "$1\n$2;")); +console.log(src.replace(/^(\s*\*\/)(.+)/m, "$1\n$2;")); diff --git a/src/test/run.js b/src/test/run.js index c873c3a..1c2a664 100644 --- a/src/test/run.js +++ b/src/test/run.js @@ -6,8 +6,7 @@ const fs = require('fs'), path = require('path'), -jsonselect = require('../jsonselect.js'), - sys = require('sys'); +jsonselect = require('../jsonselect.js') var pathToTests = path.join(__dirname, "tests"); @@ -46,7 +45,7 @@ function runTests() { for (var d in tests[l]) { console.log(" level " + l + " tests against \"" + d + ".json\":"); for (var i = 0; i < tests[l][d].length; i++) { - sys.print(" " + tests[l][d][i][0] + ": "); + console.log(" " + tests[l][d][i][0] + ": "); try { runOneSync(d, tests[l][d][i][0], tests[l][d][i][1]); numPassed++;
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2