Skip to content

Commit 0ea2740

Browse files
committed
Fixed: Fixed reference error in minimal runtime, see #580
1 parent 741b6d8 commit 0ea2740

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

runtime/index.js

+7-6
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
// This file exports just the bare minimum required to work with statically generated code.
22
// Can be used as a drop-in replacement for the full library as it has the same general structure.
3+
"use strict";
34
var protobuf = exports;
45

5-
protobuf.Writer = require("../src/writer");
6+
protobuf.Writer = require("../src/writer");
67
protobuf.BufferWriter = require("../src/writer_buffer");
7-
protobuf.Reader = require("../src/reader");
8+
protobuf.Reader = require("../src/reader");
89
protobuf.BufferReader = require("../src/reader_buffer");
9-
protobuf.util = require("../src/util/runtime");
10-
protobuf.roots = {};
11-
protobuf.configure = configure;
10+
protobuf.util = require("../src/util/runtime");
11+
protobuf.roots = {};
12+
protobuf.configure = configure;
1213

1314
function configure() {
14-
Reader._configure();
15+
protobuf.Reader._configure();
1516
}
1617

1718
// Be nice to AMD

0 commit comments

Comments
 (0)