Skip to content

Remove logs to JS console from production build #2678

Description

@quinton-ashley

Running this:

import traceback 

Outputs this log to the JS console.

method from func w-o $infos {class: {…}, bases: Array(1), mro: Array(1), name: 'GenericAlias', qualname: 'GenericAlias', …}$factory: ƒ (origin_class,items)$is_class: true$subclasses: [{…}]args: {class: {…}, doc: undefined, $type: undefined, fset: undefined, fget: ƒ, …}bases: [{…}]call: ƒ (self,...args)class: {class: {…}, bases: Array(1), mro: Array(1), name: 'type', qualname: 'type', …}eq: ƒ (self,other)getitem: ƒ (self,item)module: "types"mro: [{…}]mro_entries: ƒ (self)name: "GenericAlias"new: ƒ (origin_class,items)or: ƒ ()origin: {class: {…}, doc: undefined, $type: undefined, fset: undefined, fget: ƒ, …}parameters: {class: {…}, doc: undefined, $type: undefined, fset: undefined, fget: ƒ, …}qualname: "GenericAlias"repr: ƒ (self)type_params: {class: {…}, doc: undefined, $type: undefined, fset: undefined, fget: ƒ, …}[[Prototype]]: Object all ƒ (){try{return callable.apply(null,arguments)}catch(exc){$B.set_inum(inum);throw exc}}

That shouldn't happen in the production build.

Thanks for all your work on Brython! It's awesome!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions