From 2ac3d4d2cd4fa94f123283beac1f650fef22eed3 Mon Sep 17 00:00:00 2001 From: Tim Schaub Date: Wed, 4 Sep 2013 13:48:07 -0600 Subject: [PATCH] Export namespaces instead of functions in generated code --- bin/generate-exports.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/generate-exports.py b/bin/generate-exports.py index 8ba3d02052..a6b74d541e 100755 --- a/bin/generate-exports.py +++ b/bin/generate-exports.py @@ -354,7 +354,8 @@ def main(argv): return_type = m.group('return_type') function = Function(name, object_literal, return_type, objects) objects[name] = function - requires.add(name) + # The require should only be for the namespace, not the function + requires.add('.'.join(name.split('.')[0:-1])) continue m = re.match(r'@exportSymbol\s+(?P\S+)(?:\s+(?P\S+))?\Z', line) if m: