You are reading a single comment by @aerialist_user6911 and its replies. Click here to read the full conversation.
  • My crude re-mapping of url.parse seems to be doing the job. But...
    Ouch! I've faced with ERROR: Out of Memory...

    Well, as attached, I'm just copying concat codes into Web IDE. I think I'm going to try minify it.

    |   __|___ ___ ___ _ _|_|___ ___
    |   __|_ -| . |  _| | | |   | . |
    |_____|___|  _|_| |___|_|_|_|___|
              |_| http://espruino.com
     1v79 Copyright 2015 G.Williams
    >echo(0);
    =undefined
    >testGetParameters();
    ERROR: Out of Memory!
    =undefined
    Uncaught Error: Field or method "length" does not already exist, and can't create it on null
     at line 22 col 29
            if (esp_parse.search.length > 0){
                                 ^
    in function "" callein function "normalizeUrl" called from line 16 col 74
    ...tureMethod.normalizeUrl(URL))
                                   ^
    in function "getBaseString" called from line 2 col 69
    ...ethod.getBaseString(message);
                                   ^
    in function "sign" called from line 7 col 69
    ...ame, accessor).sign(message);
                                   ^
    in function "sign" called from line 21 col 53
            OAuth.SignatureMethod.sign(message, accessor);
                                                         ^
    in function "completeRequest" called from line 33 col 67
    ...sumerKey: 'CK', token: 'T'});
                                   ^
    in function "testGetParameters" called from line 1 col 19
    testGetParameters();
                       ^
    >
    Disconnected
    

    1 Attachment

About