From 9b4d570989b60d179378bc7ecf4ebd44a38a684d Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Tue, 29 Jan 2013 10:28:55 -0800 Subject: [PATCH] Require config when task shell starts Config adds to the require paths so it needs to be required before the handler starts so that web worker handlers have the same require semantics as the main window. --- src/stdlib/task-shell.coffee | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/stdlib/task-shell.coffee b/src/stdlib/task-shell.coffee index ea7f84ecf..39bb58c0e 100644 --- a/src/stdlib/task-shell.coffee +++ b/src/stdlib/task-shell.coffee @@ -20,8 +20,10 @@ self.callTaskMethod = (method, args...) -> # The worker's initial handler replaces itself when `start` is invoked self.handler = start: ({resourcePath, requirePath, handlerPath}) -> + self.resourcePath = resourcePath window.resourcePath = resourcePath importScripts(requirePath) + require 'config' self.handler = require(handlerPath) callTaskMethod 'started'