GithubHelp home page GithubHelp logo

int3 / metajs Goto Github PK

View Code? Open in Web Editor NEW
196.0 13.0 14.0 447 KB

Visualize your Javascript with a CPS metacircular interpreter.

Home Page: http://int3.github.com/metajs

License: MIT License

JavaScript 14.22% CoffeeScript 63.79% CSS 21.99%

metajs's Introduction

metajs's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

metajs's Issues

Exception 'metajs.js:155 Uncaught TypeError: Cannot set property 'value' of undefined'

Following code:

function* foo(){
  var index = 0;
  while(index <= 2) // при достижении 2, done в yield станет true, а value undefined;
    yield index++;
}

var iterator = foo();
console.log(iterator.next()); // { value:0, done:false }
console.log(iterator.next()); // { value:1, done:false }
console.log(iterator.next()); // { value:2, done:false }
console.log(iterator.next()); // { value:undefined, done:true }

Led to exception 'metajs.js:155 Uncaught TypeError: Cannot set property 'value' of undefined' on row
'console.log(iterator.next()); // { value:1, done:false }'

Browser: Chrome 53.0.2785.116 (64-bit)

The following Code gets stuck

Code sample:
function Human() { this.H1 = 87;}
var Obj = {
Name:"Palash"
}
Human.apply( Obj );
//------------------------------------------
Error: Function name: CPSFunction.prototype.apply in (bundle.js) errCont is undefined.
//------------------------------------------

License

Great work! However, I looked and couldn't find a license; under what terms may people use this source code?

Hoisting fails

The following test throws an exception, but shouldn't:
x(); function x() { console.log(1); }

Ajax example

Hey!

Nice project. I wonder why this code does not work:

$.ajax({
  url:'http://int3.github.io/metajs/',
  success: function(data){
    console.log(data);
  }});

Any clues?
Thanks!
Bartek

Bring back JSException

Hi! Is there any objection to bringing back JSException? I think it provides a lot of useful information about exceptions when they occur. I can reintroduce if you are okay with the idea.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.