Permalink
Browse files

Fixes #976 running with java 8 nashorn produces ReferenceError: proc…

…ess is not defined
  • Loading branch information...
jrburke committed Feb 12, 2018
1 parent c0f2086 commit 1752638a9b71ce4fc4ac42ce9bcf955ac3c331c8
Showing with 13 additions and 13 deletions.
  1. +0 −5 build/jslib/uglifyjs.js
  2. +10 −0 build/jslib/uglifyjs/README.md
  3. +1 −1 build/jslib/x.js
  4. +2 −7 dist/r.js
View
@@ -10416,11 +10416,6 @@ exports["is_identifier"] = is_identifier;
exports["SymbolDef"] = SymbolDef;
AST_Node.warn_function = function(txt) { logger.error("uglifyjs WARN: " + txt); };
-// workaround for tty output truncation upon process.exit()
-[process.stdout, process.stderr].forEach(function(stream){
- if (stream._handle && stream._handle.setBlocking)
- stream._handle.setBlocking(true);
-});
exports.AST_Node.warn_function = function(txt) {
console.error("WARN: %s", txt);
@@ -23,6 +23,16 @@ THINGS TO CHECK:
REMOVE this section:
+```javascript
+// workaround for tty output truncation upon process.exit()
+[process.stdout, process.stderr].forEach(function(stream){
+ if (stream._handle && stream._handle.setBlocking)
+ stream._handle.setBlocking(true);
+});
+```
+
+ALSO REMOVE this section:
+
```javascript
var path = require("path");
var fs = require("fs");
View
@@ -19,7 +19,7 @@ var requirejs, require, define, xpcUtil;
(function (console, args, readFileFunc) {
var fileName, env, fs, vm, path, exec, rhinoContext, dir, nodeRequire,
nodeDefine, exists, reqMain, loadedOptimizedLib, existsForNode, Cc, Ci,
- version = '2.3.5',
+ version = '2.3.5+',
jsSuffixRegExp = /\.js$/,
commandOption = '',
useLibLoaded = {},
View
@@ -1,5 +1,5 @@
/**
- * @license r.js 2.3.5 Copyright jQuery Foundation and other contributors.
+ * @license r.js 2.3.5 Mon, 12 Feb 2018 00:23:55 GMT Copyright jQuery Foundation and other contributors.
* Released under MIT license, http://github.com/requirejs/r.js/LICENSE
*/
@@ -19,7 +19,7 @@ var requirejs, require, define, xpcUtil;
(function (console, args, readFileFunc) {
var fileName, env, fs, vm, path, exec, rhinoContext, dir, nodeRequire,
nodeDefine, exists, reqMain, loadedOptimizedLib, existsForNode, Cc, Ci,
- version = '2.3.5',
+ version = '2.3.5+ Mon, 12 Feb 2018 00:23:55 GMT',
jsSuffixRegExp = /\.js$/,
commandOption = '',
useLibLoaded = {},
@@ -24656,11 +24656,6 @@ exports["is_identifier"] = is_identifier;
exports["SymbolDef"] = SymbolDef;
AST_Node.warn_function = function(txt) { logger.error("uglifyjs WARN: " + txt); };
-// workaround for tty output truncation upon process.exit()
-[process.stdout, process.stderr].forEach(function(stream){
- if (stream._handle && stream._handle.setBlocking)
- stream._handle.setBlocking(true);
-});
exports.AST_Node.warn_function = function(txt) {
console.error("WARN: %s", txt);

0 comments on commit 1752638

Please sign in to comment.