Package: node-esprima-fb / 15001.1001.0-dev-harmony-fb-3

0002-Make-the-scripts-stop-requiring-esprima-fb-as-just-e.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
From b1b26a8990a1c8cdb5d124974d18409720dcb0d6 Mon Sep 17 00:00:00 2001
From: Julien Puydt <julien.puydt@laposte.net>
Date: Sun, 18 Oct 2015 22:29:35 +0200
Subject: Make the scripts stop requiring esprima-fb as just esprima

---
 bin/esparse.js    | 2 +-
 bin/esvalidate.js | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/bin/esparse.js b/bin/esparse.js
index 1727e2f..bd25942 100755
--- a/bin/esparse.js
+++ b/bin/esparse.js
@@ -30,7 +30,7 @@ var fs, esprima, fname, content, options, syntax;
 
 if (typeof require === 'function') {
     fs = require('fs');
-    esprima = require('esprima');
+    esprima = require('esprima-fb');
 } else if (typeof load === 'function') {
     try {
         load('esprima.js');
diff --git a/bin/esvalidate.js b/bin/esvalidate.js
index d1dcab9..3ba3d57 100755
--- a/bin/esvalidate.js
+++ b/bin/esvalidate.js
@@ -36,7 +36,7 @@ if (typeof esprima === 'undefined') {
         esprima = require('./esprima');
     } else if (typeof require === 'function') {
         fs = require('fs');
-        esprima = require('esprima');
+        esprima = require('esprima-fb');
     } else if (typeof load === 'function') {
         try {
             load('esprima.js');