Skip to content

Instantly share code, notes, and snippets.

@Kamilczak020
Created October 10, 2018 09:35
Show Gist options
  • Save Kamilczak020/2c91b28f46e85164db1be505b8c7c9fb to your computer and use it in GitHub Desktop.
Save Kamilczak020/2c91b28f46e85164db1be505b8c7c9fb to your computer and use it in GitHub Desktop.
'use strict';
var _templateObject = _taggedTemplateLiteral([''], ['']),
_templateObject2 = _taggedTemplateLiteral(['console.log(\'hello\')'], ['console.log\\x28\'hello\'\\x29']);
function _taggedTemplateLiteral(strings, raw) { return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
var Foo = function Foo() {
_classCallCheck(this, Foo);
throw 'Nope!';
};
Foo.constructor(_templateObject2)(_templateObject);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment