Skip to content

Commit

Permalink
Fixed: Fixed reference error in minimal runtime, see #580
Browse files Browse the repository at this point in the history
  • Loading branch information
dcodeIO committed Dec 22, 2016
1 parent 741b6d8 commit 0ea2740
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions runtime/index.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
// This file exports just the bare minimum required to work with statically generated code.
// Can be used as a drop-in replacement for the full library as it has the same general structure.
"use strict";
var protobuf = exports;

protobuf.Writer = require("../src/writer");
protobuf.Writer = require("../src/writer");
protobuf.BufferWriter = require("../src/writer_buffer");
protobuf.Reader = require("../src/reader");
protobuf.Reader = require("../src/reader");
protobuf.BufferReader = require("../src/reader_buffer");
protobuf.util = require("../src/util/runtime");
protobuf.roots = {};
protobuf.configure = configure;
protobuf.util = require("../src/util/runtime");
protobuf.roots = {};
protobuf.configure = configure;

function configure() {
Reader._configure();
protobuf.Reader._configure();
}

// Be nice to AMD
Expand Down

0 comments on commit 0ea2740

Please sign in to comment.