Skip to content

Instantly share code, notes, and snippets.

View StanAngeloff's full-sized avatar

Stan Angeloff StanAngeloff

View GitHub Profile
diff --git a/src/nodes.coffee b/src/nodes.coffee
index 275d9b3..06f2ea8 100644
--- a/src/nodes.coffee
+++ b/src/nodes.coffee
@@ -447,7 +447,11 @@ exports.CallNode: class CallNode extends BaseNode
temp: o.scope.freeVariable()
obj: temp
meth: "($temp = ${ @variable.source })${ @variable.last }"
- "${@prefix()}${meth}.apply($obj, ${ @compileSplatArguments(o) })"
+ if @isNew

Under Expression: [ line 87, after o "Call" line 89 add:

    o "ForwardCall"

Under operators: [ end of file, add:

  ["right",     'FORWARD']
diff --git a/src/grammar.coffee b/src/grammar.coffee
index 9602555..d4c70fc 100644
--- a/src/grammar.coffee
+++ b/src/grammar.coffee
@@ -87,6 +87,7 @@ grammar: {
Expression: [
o "Value"
o "Call"
+ o "RedirectedCall"
o "Code"
mapResponse: (string, block) ->
xml2object.parse string, (error, responseObject) =>
if error
if block then block error else throw error
else
[root, map]: @responseMap
body: responseObject?['soap:Envelope']?['soap:Body']?[root]
if body
result: map2object body, map
if block then block null, result else result
helpers.extend global, {
ok: (args...) ->
try
originalOk(args...)
passedTests: + 1
catch e
failedTests: + 1
finally
lengthTests: + 1
CoffeeScript: CoffeeScript
(by_name[name]: [street, city]) for {poet: {name, address: [street, city]}} in futurists
(function() {
/*****************************************************************************
* *
* EDIT CONSTANTS BELOW TO MATCH YOUR MACHINE SETUP *
* *
* Cygwin 1.7 and Ruby must be installed first (install using setup-1.7.exe) *
* Unix machines DO NOT need Cygwin. Instead use /usr/bin as CYGWIN_PATH *
* *
* To install Sass, follow instructions here first: *
:mixin Options
class UIButton extends UIControl
click: ->
@fireEvent 'click', [this]
default-colour: #ccc
direction: 'rtl'
html, body
margin: 0
padding: 0
h1
font-size: 100%
ERROR:xpcom:Unhandled exception calling 'G int8 prefset(out retval nsISomething);'
Traceback (most recent call last):
File "C:\Program Files (x86)\ActiveState Komodo Edit 6 nightly\lib\mozilla\python\xpcom\server\policy.py", line 261, in _CallMethod_
ret = getattr(self._obj_, name) # Let attribute error go here!
AttributeError: '_KoCommandTool' object has no attribute 'prefset'