Skip to content
#

shim

Here are 85 public repositories matching this topic...

eu81273
eu81273 commented May 19, 2017

If the document.domain property is set in the page, _has module throws error "Access is denied" when try to check window's property for example 'hasOwnProperty'.

So I think it is better to change _has module like below.

var hasOwnProperty = {}.hasOwnProperty;
module.exports = function(it, key){
  try {
    return hasOwnProperty.call(it, key);
  } catch(e){
    return 
jasperges
jasperges commented Aug 2, 2019

In all bindings you have the keyword argument dir for members of QFileDialog, but in PyQt5 it is directory (personally I think it's better because it doesn't redefine a built-in). For example QFileDialog.getOpenFilename(dir="/home/me") would be QFileDialog.getOpenFileName(directory="/home/me") in PyQt5.

I have no idea how difficult this would be, but personally I think the best soluti

felixfbecker
felixfbecker commented Dec 12, 2018

util.inspect(new Error('foo')) in Node prints the stack trace of the error:

Error: foo
    at repl:1:15
    at Script.runInThisContext (vm.js:122:20)
    at REPLServer.defaultEval (repl.js:334:29)
    at bound (domain.js:395:14)
    at REPLServer.runBound [as eval] (domain.js:408:12)
    at REPLServer.onLine (repl.js:641:10)
    at REPLServer.emit (events.js:187:15)
    at REPLServ

Improve this page

Add a description, image, and links to the shim topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the shim topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.