Skip to content

@masoudahg00 - [x] @masoudahg00`` @masoudleyli @masoudahg1 #6279 #6514 #1 #2 #3 #4 #5 #6 #7 #8 #9 #10 #11 #12 #13 #15 #14 #3081

@masoudahg00

Description

@masoudahg00

@masoudahg00 - [x] `@masoudahg00``` @Masoudleyli @Masoudahg1 #6279 #6514 #1 #2 #3 #4 #5 #6 #7 #8 #9 #10 #11 #12 #13 #15 #14
3d1dfe6b35ee79499805bd2145296f3a925240aa"My portfolio ID": "35VmgKWofZxWowQ7O6CL8K" # !/usr/bin/env ruby
require_relative '../compiler/base'

generated = Compiler.new('test.src').run

Hardcode runtime JS function to validate executable

RUNTIME = 'function add(x, y) { return x + y };'.freeze
TEST = 'console.log(f(1,2))'.freeze
puts [RUNTIME, generated, TEST].join("\n")

Originally posted by @masoudahg00 in masoudahg00/anything_to_js_compiler#1 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions