Last active
June 12, 2016 16:36
-
-
Save nemanjan00/2942b54d22e5dd0de4bec975cbd63f46 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
error_log: { | |
"name": "TypeError", | |
"message": "Cannot read property 'getAttribute' of null", | |
"origin": "$r.comet<comet.onmessage>", | |
"fatal_level": 0, | |
"stack": [ | |
"create_item@/v2/en-us/-/js/hon_v3/base-app.1971.js:37:15", | |
"Object.apply@<anonymous>:17:19", | |
"prepare@/v2/en-us/-/js/hon_v3/base-app.1971.js:35:31121", | |
"Object.apply@<anonymous>:17:19", | |
"constructor@/v2/en-us/-/js/hon_v3/base-app.1971.js:35:30406", | |
"constructor@/v2/en-us/-/js/hon_v3/base-app.1971.js:35:29593", | |
"constructor.animate_spl@/v2/en-us/-/js/hon_v3/base-app.1971.js:37:14169", | |
"constructor.fire@/v2/-/-/js/hon_v3/base-lite.2060.js:1:26771", | |
"constructor._fire@/v2/en-us/-/js/hon_v3/base-app.1971.js:34:14169", | |
"constructor._proceed_evt@/v2/en-us/-/js/hon_v3/base-app.1971.js:34:15562" | |
], | |
"user_id": 227562224, | |
"app_version": 3665, | |
"app_label": "badoo", | |
"deploy_info": "production", | |
"app_state": "not_found", | |
"state_history": "profile-view", | |
"current_url": "https://eu1.badoo.com/not_found", | |
"ua": "cr", | |
"ua_full": "Chrome 51.0.2704.84", | |
"lang": "en-US", | |
"images_root": "https://badoocdn.com/aco/eu1.badoo.com" | |
} | |
error_log: { | |
"name": "TypeError", | |
"message": "Cannot convert a Symbol value to a string", | |
"origin": "$r.loader<$r.app.static_ready>", | |
"fatal_level": 0, | |
"stack": [ | |
"Object.get@<anonymous>:9:56", | |
"Object.apply@<anonymous>:17:19", | |
"Proxy.fire@/v2/-/-/js/hon_v3/base-lite.2060.js:1:26709", | |
"Object.apply@<anonymous>:17:19", | |
"ready@/v2/en-us/-/js/hon_v3/base-app.1971.js:35:17471", | |
"resourcesReady@/v2/en-us/-/js/hon_v3/base-app.1971.js:35:16540", | |
"Object.finish@/v2/-/-/js/hon_v3/base-lite.2060.js:2:19018", | |
"Object.static_ready@/v2/-/-/js/hon_v3/base-lite.2060.js:2:18692", | |
"Object.e.tryCall@/v2/-/-/js/hon_v3/base-lite.2060.js:1:4387", | |
"Object._ready@/v2/-/-/js/hon_v3/base-lite.2060.js:2:15956" | |
], | |
"user_id": 227562224, | |
"app_version": 3665, | |
"app_label": "badoo", | |
"deploy_info": "production", | |
"app_state": "not_found", | |
"state_history": "profile-view", | |
"current_url": "https://eu1.badoo.com/not_found", | |
"ua": "cr", | |
"ua_full": "Chrome 51.0.2704.84", | |
"lang": "en-US", | |
"images_root": "https://badoocdn.com/aco/eu1.badoo.com" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function traceObject(obj, name) { | |
obj.___path = name; | |
var handler = { | |
get: function(target, property, receiver) { | |
var response = Reflect.get(target, property, receiver); | |
if(response instanceof Object && !(response instanceof Node) && !(response instanceof XMLHttpRequest)){ | |
response = traceObject(response, target.___path+"."+property); | |
} | |
return response; | |
}, | |
apply: function(target, thisArg, argumentsList) { | |
console.log(target.___path); | |
return Reflect.apply(target, thisArg, argumentsList); | |
} | |
}; | |
return new Proxy(obj, handler); | |
} | |
B = traceObject(B, "B"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment