Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add jsformdata #12451

Closed
wants to merge 2 commits into from
Closed

Add jsformdata #12451

wants to merge 2 commits into from

Conversation

juancarlospaco
Copy link
Collaborator

import jsformdata

let data = newFormData()
data.set("key", "value".cstring)
data.append("key2", "value2".cstring)
data.delete("key2")
discard data.has("key")
discard data.get("key")
/* Generated by the Nim Compiler v1.0.99 */
/*   (c) 2019 Andreas Rumpf */
var framePtr = null;
var excHandler = 0;
var lastJSError = null;
if (typeof Int8Array === 'undefined') Int8Array = Array;
if (typeof Int16Array === 'undefined') Int16Array = Array;
if (typeof Int32Array === 'undefined') Int32Array = Array;
if (typeof Uint8Array === 'undefined') Uint8Array = Array;
if (typeof Uint16Array === 'undefined') Uint16Array = Array;
if (typeof Uint32Array === 'undefined') Uint32Array = Array;
if (typeof Float32Array === 'undefined') Float32Array = Array;
if (typeof Float64Array === 'undefined') Float64Array = Array;
var nim_program_result = 0;
var global_raise_hook_58618 = [null];
var local_raise_hook_58623 = [null];
var out_of_mem_hook_58626 = [null];
  if (!Math.trunc) {
    Math.trunc = function(v) {
      v = +v;
      if (!isFinite(v)) return v;

      return (v - v % 1)   ||   (v < 0 ? -0 : v === 0 ? v : 0);
    };
  }

var data_83014 = (new FormData());
data_83014.set("key", "value", "");
data_83014.append("key2", "value2", "");
data_83014.delete("key2");
data_83014.has("key");
data_83014.get("key");

@Araq
Copy link
Member

Araq commented Oct 18, 2019

This should be a Nimble package IMO.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants