Skip to content

Instantly share code, notes, and snippets.

@rwaldron
Created September 16, 2016 19:55
Show Gist options
  • Save rwaldron/cc607ca68d076c6332f771ac7db17228 to your computer and use it in GitHub Desktop.
Save rwaldron/cc607ca68d076c6332f771ac7db17228 to your computer and use it in GitHub Desktop.
In a discussion with Kyle Simpson, he offered this as a representation of the basic semantics.
var o = {};
class A extends o { }
// is:
var o = {};
function A() {}
A.prototype = Object.create(o);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment