Skip to content

Instantly share code, notes, and snippets.

@ben-ng ben-ng/a-repro.js
Last active Mar 29, 2017

What would you like to do?
Salesforce Marketing Cloud Function.length bug
Platform.Load('Core', '1.0');
function moo (foo, bar) {};
Write(moo.length); // You'll get a .NET error if you do this, weirdly enough.
Platform.Load('Core', '1.0');
function moo (foo, bar) {};
moo.argCount = 2; // This stinks, but you need to tack on the arity yourself.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.