Skip to content

Commit

Permalink
Added debugger() to __pyjamas__
Browse files Browse the repository at this point in the history
git-svn-id: https://pyjamas.svn.sourceforge.net/svnroot/pyjamas/trunk@1157 7a2bd370-bda8-463c-979e-2900ccfb811e
  • Loading branch information
keesbos committed Aug 12, 2009
1 parent 580fbf6 commit 59c930c
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CHANGELOG
@@ -1,7 +1,9 @@
Changes made to Pyjamas since 0.5p1
-----------------------------------

* Added javascript inclusion via --include-static-js and __pyjamas__.include
* Added debugger() to __pyjamas__

* Added javascript inclusion via --include-static-js and __pyjamas__.include()

* Added dict pop and popitem, thanks to Beni Cherniavsky

Expand Down
3 changes: 3 additions & 0 deletions library/__pyjamas__.py
Expand Up @@ -78,3 +78,6 @@ class console:
def error(msg):
print "TODO CONSOLE:", msg

def debugger():
pass

7 changes: 7 additions & 0 deletions pyjs/src/pyjs/translator.py
Expand Up @@ -232,6 +232,13 @@ def jsinclude(self, node):
"jsinclude function only support constant strings",
node.node)

def debugger(self, node):
if len(node.args) != 0:
raise TranslationError(
"debugger function doesn't support arguments",
node.node)
return 'debugger', False


__pyjamas__ = __Pyjamas__()

Expand Down

0 comments on commit 59c930c

Please sign in to comment.