How to use _possibleConstructorReturn method in wpt

Best JavaScript code snippet using wpt

expression.js

Source:expression.js Github

copy

Full Screen

1'use strict';2var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();3function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }4function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }5function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }6function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }7var _require = require('../util.js');8var unknownOp = _require.unknownOp;9var MISSING = require('./missing_symbol.js');10var Path = require('./path.js');11var Value = function () {12 function Value(value) {13 _classCallCheck(this, Value);14 this.value = value;15 }16 _createClass(Value, [{17 key: 'run',18 value: function run() {19 return this.value;20 }21 }, {22 key: 'ResultType',23 get: function get() {24 return this.constructor;25 }26 }], [{27 key: 'any',28 value: function any(value) {29 if (typeof value === 'number') {30 return new NumberValue(value);31 }32 if (typeof value === 'string') {33 return new StringValue(value);34 }35 if (Array.isArray(value)) {36 return new ArrayValue(value);37 }38 if (value instanceof Date) {39 return new DateValue(value);40 }41 return new Value(value);42 }43 }, {44 key: 'literal',45 value: function literal(value) {46 return new Literal(Value.any(value));47 }48 }]);49 return Value;50}();51var NumberValue = function (_Value) {52 _inherits(NumberValue, _Value);53 function NumberValue() {54 _classCallCheck(this, NumberValue);55 return _possibleConstructorReturn(this, Object.getPrototypeOf(NumberValue).apply(this, arguments));56 }57 _createClass(NumberValue, null, [{58 key: 'isType',59 value: function isType(value) {60 return typeof value === 'number';61 }62 }]);63 return NumberValue;64}(Value);65var StringValue = function (_Value2) {66 _inherits(StringValue, _Value2);67 function StringValue() {68 _classCallCheck(this, StringValue);69 return _possibleConstructorReturn(this, Object.getPrototypeOf(StringValue).apply(this, arguments));70 }71 _createClass(StringValue, null, [{72 key: 'isType',73 value: function isType(value) {74 return typeof value === 'string';75 }76 }]);77 return StringValue;78}(Value);79var ArrayValue = function (_Value3) {80 _inherits(ArrayValue, _Value3);81 function ArrayValue() {82 _classCallCheck(this, ArrayValue);83 return _possibleConstructorReturn(this, Object.getPrototypeOf(ArrayValue).apply(this, arguments));84 }85 _createClass(ArrayValue, null, [{86 key: 'isType',87 value: function isType(value) {88 return Array.isArray(value);89 }90 }]);91 return ArrayValue;92}(Value);93var DateValue = function (_Value4) {94 _inherits(DateValue, _Value4);95 function DateValue() {96 _classCallCheck(this, DateValue);97 return _possibleConstructorReturn(this, Object.getPrototypeOf(DateValue).apply(this, arguments));98 }99 _createClass(DateValue, null, [{100 key: 'isType',101 value: function isType(value) {102 return value instanceof Date;103 }104 }]);105 return DateValue;106}(Value);107var Literal = function (_Value5) {108 _inherits(Literal, _Value5);109 function Literal() {110 _classCallCheck(this, Literal);111 return _possibleConstructorReturn(this, Object.getPrototypeOf(Literal).apply(this, arguments));112 }113 _createClass(Literal, [{114 key: 'run',115 value: function run() {116 return this.value.run();117 }118 }, {119 key: 'ResultType',120 get: function get() {121 return this.value.ResultType;122 }123 }]);124 return Literal;125}(Value);126var Get = function () {127 function Get(path) {128 _classCallCheck(this, Get);129 this.path = path;130 }131 _createClass(Get, [{132 key: 'run',133 value: function run(fields) {134 var value = fields.get(this.path);135 return value === MISSING ? null : value;136 }137 }]);138 return Get;139}();140var ObjectExpr = function (_Value6) {141 _inherits(ObjectExpr, _Value6);142 function ObjectExpr() {143 _classCallCheck(this, ObjectExpr);144 return _possibleConstructorReturn(this, Object.getPrototypeOf(ObjectExpr).apply(this, arguments));145 }146 _createClass(ObjectExpr, [{147 key: 'run',148 value: function run(fields) {149 var result = {};var value = this.value;150 for (var field in value) {151 result[field] = value[field].run(fields);152 }153 return result;154 }155 }]);156 return ObjectExpr;157}(Value);158var Operator = function () {159 function Operator() {160 _classCallCheck(this, Operator);161 this.args = [];162 }163 _createClass(Operator, [{164 key: 'add',165 value: function add(node) {166 this.args.push(node);167 }168 }, {169 key: 'alt',170 get: function get() {171 return new Value(null);172 }173 }]);174 return Operator;175}();176var FnOp = function (_Operator) {177 _inherits(FnOp, _Operator);178 function FnOp(fn) {179 _classCallCheck(this, FnOp);180 var _this7 = _possibleConstructorReturn(this, Object.getPrototypeOf(FnOp).call(this));181 _this7.fn = fn;182 return _this7;183 }184 _createClass(FnOp, [{185 key: 'run',186 value: function run(fields) {187 var args = this.args;188 var fn = this.fn;189 return args.map(function (arg) {190 return arg.run(fields);191 }).reduce(fn);192 }193 }, {194 key: 'length',195 get: function get() {196 return Infinity;197 }198 }]);199 return FnOp;200}(Operator);201var UnaryFnOp = function (_FnOp) {202 _inherits(UnaryFnOp, _FnOp);203 function UnaryFnOp() {204 _classCallCheck(this, UnaryFnOp);205 return _possibleConstructorReturn(this, Object.getPrototypeOf(UnaryFnOp).apply(this, arguments));206 }207 _createClass(UnaryFnOp, [{208 key: 'run',209 value: function run(fields) {210 return this.fn(this.args[0].run(fields));211 }212 }, {213 key: 'length',214 get: function get() {215 return 1;216 }217 }]);218 return UnaryFnOp;219}(FnOp);220var fnOp = function fnOp(Parent, fn) {221 return function (_Parent) {222 _inherits(_class, _Parent);223 function _class() {224 _classCallCheck(this, _class);225 return _possibleConstructorReturn(this, Object.getPrototypeOf(_class).call(this, fn));226 }227 return _class;228 }(Parent);229};230var opTypes = function opTypes(Parent, InputType) {231 var ResultType = arguments.length <= 2 || arguments[2] === undefined ? InputType : arguments[2];232 var Constructor = function (_Parent2) {233 _inherits(Constructor, _Parent2);234 function Constructor() {235 _classCallCheck(this, Constructor);236 return _possibleConstructorReturn(this, Object.getPrototypeOf(Constructor).apply(this, arguments));237 }238 return Constructor;239 }(Parent);240 Constructor.prototype.InputType = InputType;241 Constructor.prototype.ResultType = ResultType;242 return Constructor;243};244var ArithOp = function (_opTypes) {245 _inherits(ArithOp, _opTypes);246 function ArithOp() {247 _classCallCheck(this, ArithOp);248 return _possibleConstructorReturn(this, Object.getPrototypeOf(ArithOp).apply(this, arguments));249 }250 return ArithOp;251}(opTypes(FnOp, NumberValue));252var arithOp = function arithOp(fn) {253 return fnOp(ArithOp, fn);254};255var Add = function (_arithOp) {256 _inherits(Add, _arithOp);257 function Add() {258 _classCallCheck(this, Add);259 return _possibleConstructorReturn(this, Object.getPrototypeOf(Add).apply(this, arguments));260 }261 return Add;262}(arithOp(function (a, b) {263 return a + b;264}));265var Subtract = function (_arithOp2) {266 _inherits(Subtract, _arithOp2);267 function Subtract() {268 _classCallCheck(this, Subtract);269 return _possibleConstructorReturn(this, Object.getPrototypeOf(Subtract).apply(this, arguments));270 }271 return Subtract;272}(arithOp(function (a, b) {273 return a - b;274}));275var Multiply = function (_arithOp3) {276 _inherits(Multiply, _arithOp3);277 function Multiply() {278 _classCallCheck(this, Multiply);279 return _possibleConstructorReturn(this, Object.getPrototypeOf(Multiply).apply(this, arguments));280 }281 return Multiply;282}(arithOp(function (a, b) {283 return a * b;284}));285var Divide = function (_arithOp4) {286 _inherits(Divide, _arithOp4);287 function Divide() {288 _classCallCheck(this, Divide);289 return _possibleConstructorReturn(this, Object.getPrototypeOf(Divide).apply(this, arguments));290 }291 return Divide;292}(arithOp(function (a, b) {293 return a / b;294}));295var Mod = function (_arithOp5) {296 _inherits(Mod, _arithOp5);297 function Mod() {298 _classCallCheck(this, Mod);299 return _possibleConstructorReturn(this, Object.getPrototypeOf(Mod).apply(this, arguments));300 }301 return Mod;302}(arithOp(function (a, b) {303 return a % b;304}));305var MathOp = function (_opTypes2) {306 _inherits(MathOp, _opTypes2);307 function MathOp() {308 _classCallCheck(this, MathOp);309 return _possibleConstructorReturn(this, Object.getPrototypeOf(MathOp).apply(this, arguments));310 }311 _createClass(MathOp, [{312 key: 'run',313 value: function run(fields) {314 return this.fn.apply(this, _toConsumableArray(this.args.map(function (arg) {315 return arg.run(fields);316 })));317 }318 }, {319 key: 'length',320 get: function get() {321 return this.fn.length;322 }323 }]);324 return MathOp;325}(opTypes(FnOp, NumberValue));326var mathOp = function mathOp(fn) {327 return fnOp(MathOp, fn);328};329var Abs = function (_mathOp) {330 _inherits(Abs, _mathOp);331 function Abs() {332 _classCallCheck(this, Abs);333 return _possibleConstructorReturn(this, Object.getPrototypeOf(Abs).apply(this, arguments));334 }335 return Abs;336}(mathOp(Math.abs));337var Ceil = function (_mathOp2) {338 _inherits(Ceil, _mathOp2);339 function Ceil() {340 _classCallCheck(this, Ceil);341 return _possibleConstructorReturn(this, Object.getPrototypeOf(Ceil).apply(this, arguments));342 }343 return Ceil;344}(mathOp(Math.ceil));345var Floor = function (_mathOp3) {346 _inherits(Floor, _mathOp3);347 function Floor() {348 _classCallCheck(this, Floor);349 return _possibleConstructorReturn(this, Object.getPrototypeOf(Floor).apply(this, arguments));350 }351 return Floor;352}(mathOp(Math.floor));353var Ln = function (_mathOp4) {354 _inherits(Ln, _mathOp4);355 function Ln() {356 _classCallCheck(this, Ln);357 return _possibleConstructorReturn(this, Object.getPrototypeOf(Ln).apply(this, arguments));358 }359 return Ln;360}(mathOp(Math.log));361var Log10 = function (_mathOp5) {362 _inherits(Log10, _mathOp5);363 function Log10() {364 _classCallCheck(this, Log10);365 return _possibleConstructorReturn(this, Object.getPrototypeOf(Log10).apply(this, arguments));366 }367 return Log10;368}(mathOp(Math.log10));369var Pow = function (_mathOp6) {370 _inherits(Pow, _mathOp6);371 function Pow() {372 _classCallCheck(this, Pow);373 return _possibleConstructorReturn(this, Object.getPrototypeOf(Pow).apply(this, arguments));374 }375 return Pow;376}(mathOp(Math.pow));377var Sqrt = function (_mathOp7) {378 _inherits(Sqrt, _mathOp7);379 function Sqrt() {380 _classCallCheck(this, Sqrt);381 return _possibleConstructorReturn(this, Object.getPrototypeOf(Sqrt).apply(this, arguments));382 }383 return Sqrt;384}(mathOp(Math.sqrt));385var Trunc = function (_mathOp8) {386 _inherits(Trunc, _mathOp8);387 function Trunc() {388 _classCallCheck(this, Trunc);389 return _possibleConstructorReturn(this, Object.getPrototypeOf(Trunc).apply(this, arguments));390 }391 return Trunc;392}(mathOp(Math.trunc));393var StringConcatOp = function (_opTypes3) {394 _inherits(StringConcatOp, _opTypes3);395 function StringConcatOp() {396 _classCallCheck(this, StringConcatOp);397 return _possibleConstructorReturn(this, Object.getPrototypeOf(StringConcatOp).apply(this, arguments));398 }399 return StringConcatOp;400}(opTypes(FnOp, StringValue));401var Concat = function (_fnOp) {402 _inherits(Concat, _fnOp);403 function Concat() {404 _classCallCheck(this, Concat);405 return _possibleConstructorReturn(this, Object.getPrototypeOf(Concat).apply(this, arguments));406 }407 return Concat;408}(fnOp(StringConcatOp, function (a, b) {409 return a + b;410}));411var CaseOp = function (_opTypes4) {412 _inherits(CaseOp, _opTypes4);413 function CaseOp() {414 _classCallCheck(this, CaseOp);415 return _possibleConstructorReturn(this, Object.getPrototypeOf(CaseOp).apply(this, arguments));416 }417 _createClass(CaseOp, [{418 key: 'alt',419 get: function get() {420 return new StringValue('');421 }422 }]);423 return CaseOp;424}(opTypes(UnaryFnOp, StringValue));425var ToLower = function (_fnOp2) {426 _inherits(ToLower, _fnOp2);427 function ToLower() {428 _classCallCheck(this, ToLower);429 return _possibleConstructorReturn(this, Object.getPrototypeOf(ToLower).apply(this, arguments));430 }431 return ToLower;432}(fnOp(CaseOp, function (s) {433 return s.toLowerCase();434}));435var ToUpper = function (_fnOp3) {436 _inherits(ToUpper, _fnOp3);437 function ToUpper() {438 _classCallCheck(this, ToUpper);439 return _possibleConstructorReturn(this, Object.getPrototypeOf(ToUpper).apply(this, arguments));440 }441 return ToUpper;442}(fnOp(CaseOp, function (s) {443 return s.toUpperCase();444}));445var ConcatArraysOp = function (_opTypes5) {446 _inherits(ConcatArraysOp, _opTypes5);447 function ConcatArraysOp() {448 _classCallCheck(this, ConcatArraysOp);449 return _possibleConstructorReturn(this, Object.getPrototypeOf(ConcatArraysOp).apply(this, arguments));450 }451 return ConcatArraysOp;452}(opTypes(FnOp, ArrayValue));453var ConcatArrays = function (_fnOp4) {454 _inherits(ConcatArrays, _fnOp4);455 function ConcatArrays() {456 _classCallCheck(this, ConcatArrays);457 return _possibleConstructorReturn(this, Object.getPrototypeOf(ConcatArrays).apply(this, arguments));458 }459 return ConcatArrays;460}(fnOp(ConcatArraysOp, function (a, b) {461 return a.concat(b);462}));463var DateOp = function (_opTypes6) {464 _inherits(DateOp, _opTypes6);465 function DateOp() {466 _classCallCheck(this, DateOp);467 return _possibleConstructorReturn(this, Object.getPrototypeOf(DateOp).apply(this, arguments));468 }469 return DateOp;470}(opTypes(UnaryFnOp, DateValue, NumberValue));471var dateOp = function dateOp(fn) {472 return fnOp(DateOp, fn);473};474var DayOfMonth = function (_dateOp) {475 _inherits(DayOfMonth, _dateOp);476 function DayOfMonth() {477 _classCallCheck(this, DayOfMonth);478 return _possibleConstructorReturn(this, Object.getPrototypeOf(DayOfMonth).apply(this, arguments));479 }480 return DayOfMonth;481}(dateOp(function (d) {482 return d.getDate();483}));484var Year = function (_dateOp2) {485 _inherits(Year, _dateOp2);486 function Year() {487 _classCallCheck(this, Year);488 return _possibleConstructorReturn(this, Object.getPrototypeOf(Year).apply(this, arguments));489 }490 return Year;491}(dateOp(function (d) {492 return d.getUTCFullYear();493}));494var Month = function (_dateOp3) {495 _inherits(Month, _dateOp3);496 function Month() {497 _classCallCheck(this, Month);498 return _possibleConstructorReturn(this, Object.getPrototypeOf(Month).apply(this, arguments));499 }500 return Month;501}(dateOp(function (d) {502 return d.getUTCMonth() + 1;503}));504var Hour = function (_dateOp4) {505 _inherits(Hour, _dateOp4);506 function Hour() {507 _classCallCheck(this, Hour);508 return _possibleConstructorReturn(this, Object.getPrototypeOf(Hour).apply(this, arguments));509 }510 return Hour;511}(dateOp(function (d) {512 return d.getUTCHours();513}));514var Minute = function (_dateOp5) {515 _inherits(Minute, _dateOp5);516 function Minute() {517 _classCallCheck(this, Minute);518 return _possibleConstructorReturn(this, Object.getPrototypeOf(Minute).apply(this, arguments));519 }520 return Minute;521}(dateOp(function (d) {522 return d.getUTCMinutes();523}));524var Second = function (_dateOp6) {525 _inherits(Second, _dateOp6);526 function Second() {527 _classCallCheck(this, Second);528 return _possibleConstructorReturn(this, Object.getPrototypeOf(Second).apply(this, arguments));529 }530 return Second;531}(dateOp(function (d) {532 return d.getUTCSeconds();533}));534var Millisecond = function (_dateOp7) {535 _inherits(Millisecond, _dateOp7);536 function Millisecond() {537 _classCallCheck(this, Millisecond);538 return _possibleConstructorReturn(this, Object.getPrototypeOf(Millisecond).apply(this, arguments));539 }540 return Millisecond;541}(dateOp(function (d) {542 return d.getUTCMilliseconds();543}));544var TypeCond = function () {545 function TypeCond(stack, args, op) {546 _classCallCheck(this, TypeCond);547 var InputType = op.InputType;548 var alt = op.alt;549 this.result_types = new Set([op.ResultType, alt.ResultType]);550 this.stack = stack;551 this.isType = InputType.isType;552 this.args = args;...

Full Screen

Full Screen

competencies.js

Source:competencies.js Github

copy

Full Screen

1var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();2function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }3function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }4function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }5var CompetencyIcon = function (_React$Component) {6 _inherits(CompetencyIcon, _React$Component);7 function CompetencyIcon() {8 _classCallCheck(this, CompetencyIcon);9 return _possibleConstructorReturn(this, (CompetencyIcon.__proto__ || Object.getPrototypeOf(CompetencyIcon)).apply(this, arguments));10 }11 _createClass(CompetencyIcon, [{12 key: "render",13 value: function render() {14 return React.createElement(15 "div",16 { className: "competency" },17 React.createElement(18 "div",19 null,20 " ",21 React.createElement(22 "p",23 null,24 this.name25 )26 ),27 React.createElement("img", { src: this.src, alt: this.props.name })28 );29 }30 }]);31 return CompetencyIcon;32}(React.Component);33var CppCompetency = function (_CompetencyIcon) {34 _inherits(CppCompetency, _CompetencyIcon);35 function CppCompetency() {36 var _ref;37 var _temp, _this2, _ret;38 _classCallCheck(this, CppCompetency);39 for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {40 args[_key] = arguments[_key];41 }42 return _ret = (_temp = (_this2 = _possibleConstructorReturn(this, (_ref = CppCompetency.__proto__ || Object.getPrototypeOf(CppCompetency)).call.apply(_ref, [this].concat(args))), _this2), _this2.name = "C++", _this2.src = "resources/images/competencies/Cpp.png", _temp), _possibleConstructorReturn(_this2, _ret);43 }44 return CppCompetency;45}(CompetencyIcon);46var UE4Competency = function (_CompetencyIcon2) {47 _inherits(UE4Competency, _CompetencyIcon2);48 function UE4Competency() {49 var _ref2;50 var _temp2, _this3, _ret2;51 _classCallCheck(this, UE4Competency);52 for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {53 args[_key2] = arguments[_key2];54 }55 return _ret2 = (_temp2 = (_this3 = _possibleConstructorReturn(this, (_ref2 = UE4Competency.__proto__ || Object.getPrototypeOf(UE4Competency)).call.apply(_ref2, [this].concat(args))), _this3), _this3.name = "Unreal Engine 4", _this3.src = "resources/images/competencies/UE4.png", _temp2), _possibleConstructorReturn(_this3, _ret2);56 }57 return UE4Competency;58}(CompetencyIcon);59var SteamVRCompetency = function (_CompetencyIcon3) {60 _inherits(SteamVRCompetency, _CompetencyIcon3);61 function SteamVRCompetency() {62 var _ref3;63 var _temp3, _this4, _ret3;64 _classCallCheck(this, SteamVRCompetency);65 for (var _len3 = arguments.length, args = Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {66 args[_key3] = arguments[_key3];67 }68 return _ret3 = (_temp3 = (_this4 = _possibleConstructorReturn(this, (_ref3 = SteamVRCompetency.__proto__ || Object.getPrototypeOf(SteamVRCompetency)).call.apply(_ref3, [this].concat(args))), _this4), _this4.name = "Steam VR", _this4.src = "resources/images/competencies/SteamVR.png", _temp3), _possibleConstructorReturn(_this4, _ret3);69 }70 return SteamVRCompetency;71}(CompetencyIcon);72var MSVSCompetency = function (_CompetencyIcon4) {73 _inherits(MSVSCompetency, _CompetencyIcon4);74 function MSVSCompetency() {75 var _ref4;76 var _temp4, _this5, _ret4;77 _classCallCheck(this, MSVSCompetency);78 for (var _len4 = arguments.length, args = Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {79 args[_key4] = arguments[_key4];80 }81 return _ret4 = (_temp4 = (_this5 = _possibleConstructorReturn(this, (_ref4 = MSVSCompetency.__proto__ || Object.getPrototypeOf(MSVSCompetency)).call.apply(_ref4, [this].concat(args))), _this5), _this5.name = "Microsoft Visual Studio", _this5.src = "resources/images/competencies/VisualStudio.png", _temp4), _possibleConstructorReturn(_this5, _ret4);82 }83 return MSVSCompetency;84}(CompetencyIcon);85var DX12Competency = function (_CompetencyIcon5) {86 _inherits(DX12Competency, _CompetencyIcon5);87 function DX12Competency() {88 var _ref5;89 var _temp5, _this6, _ret5;90 _classCallCheck(this, DX12Competency);91 for (var _len5 = arguments.length, args = Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {92 args[_key5] = arguments[_key5];93 }94 return _ret5 = (_temp5 = (_this6 = _possibleConstructorReturn(this, (_ref5 = DX12Competency.__proto__ || Object.getPrototypeOf(DX12Competency)).call.apply(_ref5, [this].concat(args))), _this6), _this6.name = "DirectX 12", _this6.src = "resources/images/competencies/DX12.png", _temp5), _possibleConstructorReturn(_this6, _ret5);95 }96 return DX12Competency;97}(CompetencyIcon);98var DXRCompetency = function (_CompetencyIcon6) {99 _inherits(DXRCompetency, _CompetencyIcon6);100 function DXRCompetency() {101 var _ref6;102 var _temp6, _this7, _ret6;103 _classCallCheck(this, DXRCompetency);104 for (var _len6 = arguments.length, args = Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {105 args[_key6] = arguments[_key6];106 }107 return _ret6 = (_temp6 = (_this7 = _possibleConstructorReturn(this, (_ref6 = DXRCompetency.__proto__ || Object.getPrototypeOf(DXRCompetency)).call.apply(_ref6, [this].concat(args))), _this7), _this7.name = "DirectX Raytracing", _this7.src = "resources/images/competencies/DXR.png", _temp6), _possibleConstructorReturn(_this7, _ret6);108 }109 return DXRCompetency;110}(CompetencyIcon);111var HLSLCompetency = function (_CompetencyIcon7) {112 _inherits(HLSLCompetency, _CompetencyIcon7);113 function HLSLCompetency() {114 var _ref7;115 var _temp7, _this8, _ret7;116 _classCallCheck(this, HLSLCompetency);117 for (var _len7 = arguments.length, args = Array(_len7), _key7 = 0; _key7 < _len7; _key7++) {118 args[_key7] = arguments[_key7];119 }120 return _ret7 = (_temp7 = (_this8 = _possibleConstructorReturn(this, (_ref7 = HLSLCompetency.__proto__ || Object.getPrototypeOf(HLSLCompetency)).call.apply(_ref7, [this].concat(args))), _this8), _this8.name = "HLSL", _this8.src = "resources/images/competencies/HLSL.png", _temp7), _possibleConstructorReturn(_this8, _ret7);121 }122 return HLSLCompetency;123}(CompetencyIcon);124var GitCompetency = function (_CompetencyIcon8) {125 _inherits(GitCompetency, _CompetencyIcon8);126 function GitCompetency() {127 var _ref8;128 var _temp8, _this9, _ret8;129 _classCallCheck(this, GitCompetency);130 for (var _len8 = arguments.length, args = Array(_len8), _key8 = 0; _key8 < _len8; _key8++) {131 args[_key8] = arguments[_key8];132 }133 return _ret8 = (_temp8 = (_this9 = _possibleConstructorReturn(this, (_ref8 = GitCompetency.__proto__ || Object.getPrototypeOf(GitCompetency)).call.apply(_ref8, [this].concat(args))), _this9), _this9.name = "Git", _this9.src = "resources/images/competencies/Git.png", _temp8), _possibleConstructorReturn(_this9, _ret8);134 }135 return GitCompetency;136}(CompetencyIcon);137var P4Competency = function (_CompetencyIcon9) {138 _inherits(P4Competency, _CompetencyIcon9);139 function P4Competency() {140 var _ref9;141 var _temp9, _this10, _ret9;142 _classCallCheck(this, P4Competency);143 for (var _len9 = arguments.length, args = Array(_len9), _key9 = 0; _key9 < _len9; _key9++) {144 args[_key9] = arguments[_key9];145 }146 return _ret9 = (_temp9 = (_this10 = _possibleConstructorReturn(this, (_ref9 = P4Competency.__proto__ || Object.getPrototypeOf(P4Competency)).call.apply(_ref9, [this].concat(args))), _this10), _this10.name = "Perforce", _this10.src = "resources/images/competencies/P4.png", _temp9), _possibleConstructorReturn(_this10, _ret9);147 }148 return P4Competency;149}(CompetencyIcon);150var ImGuiCompetency = function (_CompetencyIcon10) {151 _inherits(ImGuiCompetency, _CompetencyIcon10);152 function ImGuiCompetency() {153 var _ref10;154 var _temp10, _this11, _ret10;155 _classCallCheck(this, ImGuiCompetency);156 for (var _len10 = arguments.length, args = Array(_len10), _key10 = 0; _key10 < _len10; _key10++) {157 args[_key10] = arguments[_key10];158 }159 return _ret10 = (_temp10 = (_this11 = _possibleConstructorReturn(this, (_ref10 = ImGuiCompetency.__proto__ || Object.getPrototypeOf(ImGuiCompetency)).call.apply(_ref10, [this].concat(args))), _this11), _this11.name = "Dear ImGui", _this11.src = "resources/images/competencies/ImGui.png", _temp10), _possibleConstructorReturn(_this11, _ret10);160 }161 return ImGuiCompetency;162}(CompetencyIcon);163var JiraCompetency = function (_CompetencyIcon11) {164 _inherits(JiraCompetency, _CompetencyIcon11);165 function JiraCompetency() {166 var _ref11;167 var _temp11, _this12, _ret11;168 _classCallCheck(this, JiraCompetency);169 for (var _len11 = arguments.length, args = Array(_len11), _key11 = 0; _key11 < _len11; _key11++) {170 args[_key11] = arguments[_key11];171 }172 return _ret11 = (_temp11 = (_this12 = _possibleConstructorReturn(this, (_ref11 = JiraCompetency.__proto__ || Object.getPrototypeOf(JiraCompetency)).call.apply(_ref11, [this].concat(args))), _this12), _this12.name = "Jira", _this12.src = "resources/images/competencies/Jira.png", _temp11), _possibleConstructorReturn(_this12, _ret11);173 }174 return JiraCompetency;175}(CompetencyIcon);176var PSVitaCompetency = function (_CompetencyIcon12) {177 _inherits(PSVitaCompetency, _CompetencyIcon12);178 function PSVitaCompetency() {179 var _ref12;180 var _temp12, _this13, _ret12;181 _classCallCheck(this, PSVitaCompetency);182 for (var _len12 = arguments.length, args = Array(_len12), _key12 = 0; _key12 < _len12; _key12++) {183 args[_key12] = arguments[_key12];184 }185 return _ret12 = (_temp12 = (_this13 = _possibleConstructorReturn(this, (_ref12 = PSVitaCompetency.__proto__ || Object.getPrototypeOf(PSVitaCompetency)).call.apply(_ref12, [this].concat(args))), _this13), _this13.name = "PlayStation Vita Dev Tools", _this13.src = "resources/images/competencies/PSVita.png", _temp12), _possibleConstructorReturn(_this13, _ret12);186 }187 return PSVitaCompetency;188}(CompetencyIcon);189var SwiftCompetency = function (_CompetencyIcon13) {190 _inherits(SwiftCompetency, _CompetencyIcon13);191 function SwiftCompetency() {192 var _ref13;193 var _temp13, _this14, _ret13;194 _classCallCheck(this, SwiftCompetency);195 for (var _len13 = arguments.length, args = Array(_len13), _key13 = 0; _key13 < _len13; _key13++) {196 args[_key13] = arguments[_key13];197 }198 return _ret13 = (_temp13 = (_this14 = _possibleConstructorReturn(this, (_ref13 = SwiftCompetency.__proto__ || Object.getPrototypeOf(SwiftCompetency)).call.apply(_ref13, [this].concat(args))), _this14), _this14.name = "Swift", _this14.src = "resources/images/competencies/Swift.png", _temp13), _possibleConstructorReturn(_this14, _ret13);199 }200 return SwiftCompetency;201}(CompetencyIcon);202var XCodeCompetency = function (_CompetencyIcon14) {203 _inherits(XCodeCompetency, _CompetencyIcon14);204 function XCodeCompetency() {205 var _ref14;206 var _temp14, _this15, _ret14;207 _classCallCheck(this, XCodeCompetency);208 for (var _len14 = arguments.length, args = Array(_len14), _key14 = 0; _key14 < _len14; _key14++) {209 args[_key14] = arguments[_key14];210 }211 return _ret14 = (_temp14 = (_this15 = _possibleConstructorReturn(this, (_ref14 = XCodeCompetency.__proto__ || Object.getPrototypeOf(XCodeCompetency)).call.apply(_ref14, [this].concat(args))), _this15), _this15.name = "xCode", _this15.src = "resources/images/competencies/xCode.png", _temp14), _possibleConstructorReturn(_this15, _ret14);212 }213 return XCodeCompetency;214}(CompetencyIcon);215var Competencies = function (_React$Component2) {216 _inherits(Competencies, _React$Component2);217 function Competencies() {218 _classCallCheck(this, Competencies);219 return _possibleConstructorReturn(this, (Competencies.__proto__ || Object.getPrototypeOf(Competencies)).apply(this, arguments));220 }221 _createClass(Competencies, [{222 key: "render",223 value: function render() {224 return React.createElement(225 "div",226 { className: "competencies-container" },227 this.props.competenciesArray228 );229 }230 }]);231 return Competencies;232}(React.Component);233;...

Full Screen

Full Screen

errors.js

Source:errors.js Github

copy

Full Screen

1"use strict";2function _classCallCheck(r, t) {3 if (!(r instanceof t)) throw new TypeError("Cannot call a class as a function")4}5function _possibleConstructorReturn(r, t) {6 if (!r) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");7 return !t || "object" != typeof t && "function" != typeof t ? r : t8}9function _inherits(r, t) {10 if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function, not " + typeof t);11 r.prototype = Object.create(t && t.prototype, {12 constructor: {13 value: r,14 enumerable: !1,15 writable: !0,16 configurable: !017 }18 }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(r, t) : r.__proto__ = t)19}20var AppError = function (r) {21 function n(r, t, e) {22 _classCallCheck(this, n);23 var o = _possibleConstructorReturn(this, (n.__proto__ || Object.getPrototypeOf(n)).call(this, r));24 return o.name = o.constructor.name, Error.captureStackTrace(o, o.constructor), o.status = t || 500, o.code = e || 2001, o.data = {25 error: {26 code: o.code,27 message: o.message28 }29 }, o30 }31 return _inherits(n, Error), n32}(), NotFoundError = function (r) {33 function e(r, t) {34 return _classCallCheck(this, e), t || (t = 1001, "string" == typeof r && (0 <= r.toLowerCase().indexOf("service") && (t = 1002), 0 <= r.toLowerCase().indexOf("room") && (t = 1003), 0 <= r.toLowerCase().indexOf("stream") && (t = 1004), 0 <= r.toLowerCase().indexOf("participant") && (t = 1005))), _possibleConstructorReturn(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, r || "Resource not found", 404, t))35 }36 return _inherits(e, AppError), e37}(), AuthError = function (r) {38 function e(r, t) {39 return _classCallCheck(this, e), _possibleConstructorReturn(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, r || "Authentication failed", 401, t || 1101))40 }41 return _inherits(e, AppError), e42}(), AccessError = function (r) {43 function e(r, t) {44 return _classCallCheck(this, e), _possibleConstructorReturn(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, r || "Access forbiden", 403, t || 1102))45 }46 return _inherits(e, AppError), e47}(), BadRequestError = function (r) {48 function e(r, t) {49 return _classCallCheck(this, e), _possibleConstructorReturn(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, r || "Bad request", 400, t || 1201))50 }51 return _inherits(e, AppError), e52}(), CloudError = function (r) {53 function e(r, t) {54 return _classCallCheck(this, e), _possibleConstructorReturn(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, r || "Cloud handler failed", 500, t || 1301))55 }56 return _inherits(e, AppError), e57}();58module.exports = {59 AppError: AppError,60 NotFoundError: NotFoundError,61 AuthError: AuthError,62 AccessError: AccessError,63 CloudError: CloudError,64 BadRequestError: BadRequestError...

Full Screen

Full Screen

Using AI Code Generation

copy

Full Screen

1var _possibleConstructorReturn = wptoolkit._possibleConstructorReturn;2var _inherits = wptoolkit._inherits;3var _createClass = wptoolkit._createClass;4var _assign = wptoolkit._assign;5var _keys = wptoolkit._keys;6var _defineProperty = wptoolkit._defineProperty;7var _getPrototypeOf = wptoolkit._getPrototypeOf;8var _setPrototypeOf = wptoolkit._setPrototypeOf;9var _create = wptoolkit._create;10var _freeze = wptoolkit._freeze;11var _seal = wptoolkit._seal;12var _preventExtensions = wptoolkit._preventExtensions;13var _isFrozen = wptoolkit._isFrozen;14var _isSealed = wptoolkit._isSealed;15var _isExtensible = wptoolkit._isExtensible;16var _getOwnPropertyDescriptor = wptoolkit._getOwnPropertyDescriptor;17var _getOwnPropertyNames = wptoolkit._getOwnPropertyNames;18var _getPrototypeOf2 = wptoolkit._getPrototypeOf;19var _setPrototypeOf2 = wptoolkit._setPrototypeOf;

Full Screen

Using AI Code Generation

copy

Full Screen

1var _possibleConstructorReturn = require('wpt')._possibleConstructorReturn;2var _inherits = require('wpt')._inherits;3var _classCallCheck = require('wpt')._classCallCheck;4var Parent = function Parent() {5 _classCallCheck(this, Parent);6};7var Child = function (_Parent) {8 _inherits(Child, _Parent);9 function Child() {10 _classCallCheck(this, Child);11 return _possibleConstructorReturn(this, (Child.__proto__ || Object.getPrototypeOf(Child)).apply(this, arguments));12 }13 return Child;14}(Parent);15var child = new Child();16console.log(child instanceof Child);17console.log(child instanceof Parent);

Full Screen

Using AI Code Generation

copy

Full Screen

1var _possibleConstructorReturn = require('wptoolkit')._possibleConstructorReturn;2var _getPrototypeOf = require('wptoolkit')._getPrototypeOf;3var _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf);4function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }5var _require = require('wptoolkit'),6 _getPrototypeOf = _require._getPrototypeOf;7var _require2 = require('wptoolkit'),8 _getPrototypeOf = _require2._getPrototypeOf;9var _require3 = require('wptoolkit'),10 _getPrototypeOf = _require3._getPrototypeOf;11var _require4 = require('wptoolkit'),12 _getPrototypeOf = _require4._getPrototypeOf;13var _require5 = require('wptoolkit'),14 _getPrototypeOf = _require5._getPrototypeOf;15var _require6 = require('wptoolkit'),16 _getPrototypeOf = _require6._getPrototypeOf;17var _require7 = require('wptoolkit'),18 _getPrototypeOf = _require7._getPrototypeOf;19var _require8 = require('wptoolkit'),20 _getPrototypeOf = _require8._getPrototypeOf;21var _require9 = require('wptoolkit'),22 _getPrototypeOf = _require9._getPrototypeOf;23var _require10 = require('wptoolkit'),24 _getPrototypeOf = _require10._getPrototypeOf;25var _require11 = require('wptoolkit'),

Full Screen

Using AI Code Generation

copy

Full Screen

1var wpt = require('webpagetest');2var wpt = new WebPageTest('www.webpagetest.org');3 if (err) return console.log(err);4 console.log(data);5});6var wpt = require('webpagetest');7var wpt = new WebPageTest('www.webpagetest.org');8 if (err) return console.log(err);9 console.log(data);10});

Full Screen

Using AI Code Generation

copy

Full Screen

1var wptools = require('wptools');2var _possibleConstructorReturn = require('wptools/lib/possible-constructor-return');3var Wiki = function Wiki() {4 return _possibleConstructorReturn(this, (Wiki.__proto__ || Object.getPrototypeOf(Wiki)).apply(this, arguments));5};6var wiki = new Wiki('Albert Einstein');7wiki.get(function (err, resp) {8 if (!err) {9 console.log(resp);10 }11});12{ title: 'Albert Einstein',13 'CS1 German-language sources (de)',14 'CS1 Swedish-language sources (sv)',

Full Screen

Using AI Code Generation

copy

Full Screen

1var wpt = require('webpagetest');2var wptInstance = new wpt('API_KEY');3console.log(test);4var webpagetest = require('webpagetest');5var wptInstance = new webpagetest('API_KEY');6console.log(test);7var webpagetest = require('webpagetest');8var wptInstance = new webpagetest('API_KEY');9console.log(test);10var webpagetest = require('webpagetest');11var wptInstance = new webpagetest('API_KEY');12console.log(test);13var webpagetest = require('webpagetest');14var wptInstance = new webpagetest('API_KEY');15console.log(test);16var webpagetest = require('webpagetest');17var wptInstance = new webpagetest('API_KEY');18console.log(test);19var webpagetest = require('webpagetest');20var wptInstance = new webpagetest('API_KEY');21console.log(test);22var webpagetest = require('webpagetest');23var wptInstance = new webpagetest('API_KEY');24console.log(test);25var webpagetest = require('webpagetest');26var wptInstance = new webpagetest('API_KEY');27console.log(test);

Full Screen

Using AI Code Generation

copy

Full Screen

1var wptools = require('wptools');2var page = wptools.page('Barack Obama');3page.get(function(err, info) {4 console.log(info);5});6{

Full Screen

Using AI Code Generation

copy

Full Screen

1var wpt = require('./wpt');2var o = new wpt();3console.log(o instanceof wpt);4console.log(o instanceof wpt._possibleConstructorReturn);5var wpt = require('./wpt');6var o = new wpt();7console.log(o instanceof wpt);8console.log(o instanceof wpt._possibleConstructorReturn);9var wpt = require('./wpt');10var o = new wpt();11console.log(o instanceof wpt);12console.log(o instanceof wpt._possibleConstructorReturn);13var wpt = require('./wpt');14var o = new wpt();15console.log(o instanceof wpt);16console.log(o instanceof wpt._possibleConstructorReturn);17var wpt = require('./wpt');18var o = new wpt();19console.log(o instanceof wpt);20console.log(o instanceof wpt._possibleConstructorReturn);21var wpt = require('./wpt');22var o = new wpt();23console.log(o instanceof wpt);24console.log(o instanceof wpt._possibleConstructorReturn);25var wpt = require('./wpt');26var o = new wpt();27console.log(o instanceof wpt);28console.log(o instanceof wpt._possibleConstructorReturn);

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run wpt automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful