Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: test.js

Issue 29333474: Issue 4125 - [emscripten] Convert filter classes to C++ (Closed)
Patch Set: Replaced shared_ptr by boost-like intrusive_ptr Created Jan. 28, 2016, 7:50 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « lib/filterNotifier.js ('k') | test/domainRestrictions.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #!/usr/bin/env node --harmony
2 "use strict";
3
4 require("node-babel")({
5 extensions: [".js"],
6 ignore: /\bcompiled\b/,
7 blacklist: ["useStrict"]
8 });
9
10 // HACK: override Node's module resolution to match the way bootstrap.js
11 // resolves modules right now.
12 let nodeModule = require("module");
13 let origResolve = nodeModule._resolveFilename;
14 nodeModule._resolveFilename = function()
15 {
16 let params = Array.slice(arguments);
17 if (params[0] == "compiled")
18 params[0] = "./compiled";
19 else if (params[0] == "filterClasses")
20 params[0] = "./filterClassesNew";
21 else if (params[0] == "../lib/filterClasses")
22 params[0] = "../lib/filterClassesNew";
23 else if (params[0] == "filterNotifier")
24 params[0] = "./filterNotifier";
25 return origResolve.apply(this, params);
26 };
27
28 require("nodeunit").reporters.default.run(["test"]);
OLDNEW
« no previous file with comments | « lib/filterNotifier.js ('k') | test/domainRestrictions.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld