Skip to content

Commit 52a6b71

Browse files
committed
ergh
1 parent bb24594 commit 52a6b71

3 files changed

Lines changed: 12 additions & 1 deletion

File tree

‎v3/opt_togetherjs/Makefile‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
all:
44
jshint server.js && node server.js --host 0.0.0.0 --port 30035
55

6+
deps:
7+
npm install websocket optimist
8+
69
prod:
710
#jshint server.js && forever -l togetherjs_server.log server.js --host 0.0.0.0 --port 30035
811
# on Linode:

‎v4-cokapi/backends/javascript/Makefile‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ diffall:
2020
jshint jslogger.js && python golden_test.py --diffall
2121

2222
# run this before creating any Docker containers
23+
# super weird -- need eval@0.1.0 or else line numbers don't show up on syntax errors!
2324
deps:
24-
npm install eval underscore minimist source-map typescript
25+
npm install eval@0.1.0 underscore minimist source-map typescript@1.4
2526
tar -xvf node-v6.0.0-linux-x64.tar.xz

‎v4-cokapi/backends/javascript/jslogger.js‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,13 @@ TypeScript TODOs:
8787
/* global Debug */
8888
"use strict";
8989

90+
// super weird -- need eval@0.1.0 or else line numbers don't show up on syntax errors!
91+
// A HA! see this option in the vm module (https://nodejs.org/api/vm.html),
92+
// which the new version of eval turns to false:
93+
// displayErrors: if true, on error, attach the line of code that
94+
// caused the error to the stack trace. Applies only to syntax errors
95+
// compiling the code; errors while running the code are controlled by
96+
// the options to the script's methods.
9097
var _eval = require('eval');
9198
var util = require('util');
9299
var fs = require('fs');

0 commit comments

Comments
 (0)