From 0ea2740f0774b4c5c349b9c303f3fb2c2743c37b Mon Sep 17 00:00:00 2001 From: dcodeIO Date: Thu, 22 Dec 2016 13:37:26 +0100 Subject: [PATCH] Fixed: Fixed reference error in minimal runtime, see #580 --- runtime/index.js | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/runtime/index.js b/runtime/index.js index fe43e9a48..6c2666876 100644 --- a/runtime/index.js +++ b/runtime/index.js @@ -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